Hello,
I'm having a difficult time configuring ldap authentication for the web
login.I used the test script found on this mailing list and it seems to
work with the following parameters.
$server = 'serverA.internal.ncf.edu'; # ldap server hostname
$masteracct = 'CN=VCL User,OU=Admin,DC=internal,DC=ncf,DC=edu'; # full
DNof account with which to log in to
ldap server
$masterpass = 'mypassword'; # password for account
$res = ldap_bind($ds, $masteracct, $masterpass);
The above works fine in the test script which is also where it's failing in
vcl/.ht-inc/authentication.php line 413. by the way, I modified
ldapauthand authentication.
php to use ldap:// instead of ldaps:// for the time being because ldaps is
not working at all. I get invalid credentials line 413 of authentication.phpis
$res = ldap_bind($ds, $ldapuser, $passwd);
my conf.php looks like this which might be the issue, I may need to put it
in a different format.
"server" => "serverA.internal.ncf.edu",
"binddn" => "dc=internal,dc=ncf,dc=edu",
"userid" => "uid=%s,dc=internal,dc=ncf,dc=edu", [email protected]'
"unityid" => "samAccountName", # ldap field that contains the user's loginid
"firstname" => "givenname", # ldap field that contains the user's first name
"lastname" => "sn", # ldap field that contains the user's last name
"email" => "mail", # ldap field that contains the user's email address
"defaultemail" => "@example.com", # if for some reason an email address may
not be returned for a user, this is what
# can be added to the user's login id to send mail
"masterlogin" => "vcluser", # privileged login id for ldap server
"masterpwd" => "mypassword", # privileged login password for ldap server
Thanks