diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-28 18:47:39 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-28 18:47:39 +0000 |
commit | 2e677444701d1c0295fa126b056d26c7468f9862 (patch) | |
tree | 94ce222bb9f66a02a234aeca814ee44b78e98812 /pynslcd/pam.py | |
parent | ad76395a82a71d1ff872c7c627bf6dada7116ee1 (diff) |
put standard library imports before application imports and remove some unused imports
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1438 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/pam.py')
-rw-r--r-- | pynslcd/pam.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pynslcd/pam.py b/pynslcd/pam.py index d795a64..2203e19 100644 --- a/pynslcd/pam.py +++ b/pynslcd/pam.py @@ -1,7 +1,7 @@ # pam.py - functions authentication, authorisation and session handling # -# Copyright (C) 2010 Arthur de Jong +# Copyright (C) 2010, 2011 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -18,15 +18,15 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA -import constants -import common -import cfg - import logging import ldap +import constants +import common +import cfg import passwd + def try_bind(userdn, password): # open a new connection conn = ldap.initialize(cfg.ldap_uri) |