{"action":"closed","issue":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/79","labels_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/79/comments","events_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/79/events","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/issues/79","id":54109571,"number":79,"title":"LDAP Auth on 1.3.0","user":{"login":"ben-github","id":2636492,"avatar_url":"https://avatars.githubusercontent.com/u/2636492?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-github","html_url":"https://github.com/ben-github","followers_url":"https://api.github.com/users/ben-github/followers","following_url":"https://api.github.com/users/ben-github/following{/other_user}","gists_url":"https://api.github.com/users/ben-github/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-github/subscriptions","organizations_url":"https://api.github.com/users/ben-github/orgs","repos_url":"https://api.github.com/users/ben-github/repos","events_url":"https://api.github.com/users/ben-github/events{/privacy}","received_events_url":"https://api.github.com/users/ben-github/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-12T21:31:45Z","updated_at":"2015-01-13T20:46:56Z","closed_at":"2015-01-13T20:46:56Z","body":"I'm trying to get 1.3.0 working to add migration documentation on the multi-roles. I just did a fresh checkout but I'm getting an error whenever I use LDAP as my authentication method.\r\n\r\nMy config looks like\r\n```\r\nAUTH_TYPE = AUTH_LDAP\r\nAUTH_USER_REGISTRATION = True\r\nAUTH_LDAP_SERVER = \"ldap://localhost\"\r\nAUTH_LDAP_SEARCH = \"ou=people,dc=example,dc=com\"\r\n```\r\n\r\nwhen I run python run.py I get:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"run.py\", line 2, in <module>\r\n    from app import app\r\n  File \"/data/VDS/flask-appbuilder/app/__init__.py\", line 15, in <module>\r\n    appbuilder = AppBuilder(app, db.session)\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/base.py\", line 89, in __init__\r\n    self.init_app(app, session)\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/base.py\", line 109, in init_app\r\n    self._add_admin_views()\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/base.py\", line 201, in _add_admin_views\r\n    self.sm.register_views()\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/security/manager.py\", line 254, in register_views\r\n    category_label=_('Security'))\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/base.py\", line 269, in add_view\r\n    baseview = self._check_and_init(baseview)\r\n  File \"/usr/lib/python2.7/dist-packages/flask_appbuilder/base.py\", line 221, in _check_and_init\r\n    if baseview.datamodel.session is None:\r\nAttributeError: 'NoneType' object has no attribute 'session'\r\n```\r\n\r\nI've done a little testing and it works fine with AUTH_DB as the authentication method.\r\n\r\nThanks,\r\n\r\n\r\n"}}