LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LDAP authentication fails in Bugzilla (https://www.linuxquestions.org/questions/linux-newbie-8/ldap-authentication-fails-in-bugzilla-762316/)

fizeelinux 10-16-2009 03:14 AM

LDAP authentication fails in Bugzilla
 
Hi all ,

I have configured Bugzilla .I have enabled both 'DB' and 'LDAP' for the authentication in the params file.Here are my details
Code:

          'LDAPBaseDN' => 'OU=thy,OU=eQobjects,DC=xyz,DC=com',
          'LDAPbinddn' => 'CN=admin;CN=Users;DC=xyz;DC=com:abc123',

          'LDAPmailattribute' => 'mail',
          'LDAPserver' => 'ldap://ntp:389',

          'LDAPuidattribute' => 'mail',

          'user_verify_class' => 'DB,LDAP',

FYI i am using Windows Active directory running under windows 2003 server.

admin is the user name in the CN=Users which is in turn contained in 'OU=thy,OU=eQobjects,DC=xyz,DC=com', and abc123 is the password for the
admin user

I am presently using another account(type DB account) for logging in bugzilla interface and doing the configuration.

Now my problem is whenever i am trying to authenticate the bugzilla with the ldap users

i am getting the error "The username or password you entered is not valid." and some times i get "FAILED TO BIND THE LDAP SERVER".Have i done anything wrong in the ldap configuration settings? Please help me .Thanks in advance.

acid_kewpie 10-16-2009 03:40 AM

well can you do an ldapsearch outside of bugzilla using the same credentials?

fizeelinux 10-16-2009 08:01 AM

Quote:

Originally Posted by acid_kewpie (Post 3721375)
well can you do an ldapsearch outside of bugzilla using the same credentials?

Hi Chris thanks for your valuable suggestion.

ldapsearch -x -b "OU=Users,OU=thy,OU=eQobjects,DC=xyz,DC=com" -W -D "CN=admin,CN=Users,DC=xyz,DC=com"

Runs successfully and returns all the objects ..
All of my users are getting listed...Same parameters i set in bugzilla.When i checked it the 'admin' user got added in the bugzilla user list.But when i tried to login with other users(Users in the OU=Users) the authentication fails with the error message 'Invalid username and password'...Any ideas will be greatly appreciated...Thanks in advance.....

acid_kewpie 10-16-2009 01:36 PM

Well for a start the binddn is not valid syntactically.

Personally *I* would use a track sniffing tool (i.e. wireshark) to capture and analyze the LDAP bind. compare and contrast an ldapsearch with the failing Bugzilla attempt, and that should give you a lot of useful information


All times are GMT -5. The time now is 03:28 PM.