|Posted on Monday, March 09, 2015 - 4:11 pm: |
i'm getting an error message when i follow and enable the LDAP integration. i'm able to test the Authen::Simple::LDAP in CPAN wihtout issues. it installed fine without error. when i try to login with an enable user for external authentication, i get the following error message from login.cgi:
Can't locate Authen/Simple/LDAP.pm in @INC (@INC contains: lib/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at password_external.cgi line 48.
For help, please send mail to the webmaster (Walter.Romero@oneonta.edu), giving this error message and the time and date of the error.
are there any other files i need to edit besides the authen.conf and creating the home/webmo/bin/pam_authenticate.pl?
Post Number: 449
|Posted on Monday, March 09, 2015 - 5:18 pm: |
Please make sure to install Authen::Simple::LDAP as 'root', so that it is available for all users. I believe if you don't install as root, it will install only for that user.
|Posted on Thursday, March 12, 2015 - 8:55 am: |
alright, i've managed to installed it system wide. now when i login with a good credential from our LDAP. when i click submit, it display the login page again. are there any debug option i can enable to see why its redirecting me to the login page again? i made sure i'm typing the right password. both, wrong password and good password just redirects just display the login page again.
Post Number: 450
|Posted on Thursday, March 12, 2015 - 10:29 am: |
For LDAP, you also need to edit:
to reflect location of LDAP server and base DN.
Since this authentication is carried out by the Authen::Simple::LDAP library, WebMO does not have logs. But if you look at the documentation for that library:
it appears that it can be made to log info.
In my experience, simply setting the ldap server and base DN is almost always sufficient!
|Posted on Thursday, March 12, 2015 - 11:59 am: |
thanks for the info, i've got it working with our AD ADDS service/LDAP. for that, i needed to also specified the following in the password_external.cgi
$auth = Authen::Simple::LDAP->new(
binddn => 'mydn',
bindpw => 'mypass',
filter => '(&(objectClass=organizationalPerson)(objectClass=user)(sAMAccountName=%s))')
now, that i have it authenticating with our LDAP server. Is there a way to get the email information from LDAP/AD and into WebMO?
Post Number: 451
|Posted on Thursday, March 12, 2015 - 1:29 pm: |
Great news. Unfortunately, WebMO doesn't support import of the email information from LDAP into WebMO. This is an interesting idea that I will consider in the future.