diff options
author | David Dahl <dahl@mcs.anl.gov> | 2006-10-26 19:42:14 +0000 |
---|---|---|
committer | David Dahl <dahl@mcs.anl.gov> | 2006-10-26 19:42:14 +0000 |
commit | f661e9837c1afe78ac8608796d0abee3fe4a5994 (patch) | |
tree | 17643bb967f7a698efd86b25ef46c6df436fba79 /src/lib/Server/Hostbase/test | |
parent | c0a5c5f0cec1dabee49dd9a8c5897ed1437bde31 (diff) | |
download | bcfg2-f661e9837c1afe78ac8608796d0abee3fe4a5994.tar.gz bcfg2-f661e9837c1afe78ac8608796d0abee3fe4a5994.tar.bz2 bcfg2-f661e9837c1afe78ac8608796d0abee3fe4a5994.zip |
LDAP auth backend added, more environ/settings/cfg changes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2456 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/test')
-rw-r--r-- | src/lib/Server/Hostbase/test/test_ldapauth.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/Server/Hostbase/test/test_ldapauth.py b/src/lib/Server/Hostbase/test/test_ldapauth.py new file mode 100644 index 000000000..7fc009ad2 --- /dev/null +++ b/src/lib/Server/Hostbase/test/test_ldapauth.py @@ -0,0 +1,10 @@ +import os,sys +import harness + +from Hostbase.ldapauth import * + +def test_it(): + l = ldapauth(os.environ['LDAP_SVC_ACCT_NAME'], + os.environ['LDAP_SVC_ACCT_PASS']) + + assert l.department == 'foo' |