Removed hardcoding of URI.

This commit is contained in:
David Bartley 2007-07-23 16:16:05 -04:00
parent 0e727788cb
commit 015bb49c08
2 changed files with 7 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
libpam-csc (1.1) unstable; urgency=low
* Removed hardcoding of URI.
-- David Bartley <dtbartle@csclub.uwaterloo.ca> Fri, 27 Jul 2007 08:40:21 -0400
libpam-csc (1.0) unstable; urgency=low
* Initial Release.

View File

@ -12,8 +12,6 @@
#include <syslog.h>
#include <pwd.h>
#define PAM_CSC_LDAP_URI \
"ldap://caffeine.csclub.uwaterloo.ca ldap://perpugilliam.csclub.uwaterloo.ca"
#define PAM_CSC_LDAP_USER_BASE_DN "ou=People,dc=csclub,dc=uwaterloo,dc=ca"
#define PAM_CSC_LDAP_GROUP_BASE_DN "ou=Group,dc=csclub,dc=uwaterloo,dc=ca"
#define PAM_CSC_LDAP_TIMEOUT 5
@ -105,7 +103,7 @@ int check_user(const char* username, enum check_user_type_t checkType)
}
/* connect and bind */
WARN_LDAP( ldap_initialize(&ld, PAM_CSC_LDAP_URI) )
WARN_LDAP( ldap_create(&ld) )
WARN_NEG1( ldap_simple_bind(ld, NULL, NULL) )
WARN_ZERO( usernameEscaped = escape_ldap_string(username) );