So far I found LDAP.pm in the directory
lib/WeBWorK/Authen, and it shows the line
# bind anonymously
I would really appreciate if someone could help me rewriting it to include additional credentials for authentication.
Andras
lib/WeBWorK/Authen, and it shows the line
# bind anonymously
I would really appreciate if someone could help me rewriting it to include additional credentials for authentication.
Andras
Answering the solution to my own problem:
I received from our generous tech support
a special username and password for an account with special search privilage on the LDAP server.
Let me denote them by spec_uname and spec_passwd.
In the file LDAP.pm the following two lines
# bind anonymously
$msg = $ldap->bind;
were changed to
# bind using credentials
$msg = $ldap->bind("cn=spec_uname, cn=... ,dc=...,dc=...", password => "spec_passwd");
Substitute ... with your site specific base info.
I am sure that all this information could be pulled from the global.conf file, but this works for me for now (until I upgrade webwork and forget how to fix it again).
I think the password can also be encrypted.
Andras
I received from our generous tech support
a special username and password for an account with special search privilage on the LDAP server.
Let me denote them by spec_uname and spec_passwd.
In the file LDAP.pm the following two lines
# bind anonymously
$msg = $ldap->bind;
were changed to
# bind using credentials
$msg = $ldap->bind("cn=spec_uname, cn=... ,dc=...,dc=...", password => "spec_passwd");
Substitute ... with your site specific base info.
I am sure that all this information could be pulled from the global.conf file, but this works for me for now (until I upgrade webwork and forget how to fix it again).
I think the password can also be encrypted.
Andras