Following the instructions in the documentation (section 3.1.10 in this
link <http://www.bugzilla.org/docs/3.4/en/html/parameters.html>), it
seems pretty straightforward, but I cannot get it to successfully bind
like I can in PHP. For reference, the following PHP script works (this
is a user with read access to Active Directory):
<?php
$conn = ldap_connect("127.0.0.1") or die("Could not connect to server");
$r = ldap_bind($conn, "ldap...@MYDOMAIN.local", "MYPASSWORD") or
die("Could not bind to server");
ldap_close($conn);
?>
However, trying to use the same credentials in BugZilla does not work:
LDAPServer: localhost
LDAPstarttls: Off
LDAPbinddn: cn=default,cn=ldap.user:MYPASSWORD
LDAPBaseDN: ou=Users
LDAPuidattribute: uid
LDAPmailattribute: mail
LDAPfilter:
Using those settings, I get the following error message (in a "Bugzilla
has suffered an internal error" webpage):
Failed to bind to the LDAP server. The error message was: |80090308:
LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525,
vece||
| Unfortunately the rest of the error is cut off. I also tried using my
exact Distinguished Name, with the same error:
cn=ldap.user:MYPASSWORD,dc=MYDOMAIN,dc=local
cn=ldap user:MYPASSWORD,dc=MYDOMAIN,dc=local
I'm probably just missing some small detail, but I can't think of
anything else to try. Does anybody have an idea?
Thanks in advance for your help!
Jake
I have had some problems with Bugzilla and LDAP. I'm trying to fix it.
I'm using the informations directly of LDAP, that you can take in the
properties of the user that you are using to your test. Like this :
LDAP Properties:
ldap://X.X.X.X:Port/CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br
Bugzilla :
'LDAPBaseDN' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br',
'LDAPbinddn' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br:password',
'LDAPfilter' => '',
'LDAPmailattribute' => 'mail',
'LDAPserver' => 'ldap://X.X.X.X:389/',
'LDAPstarttls' => 0,
'LDAPuidattribute' => 'userPrincipalName',
If I can do something else, I say to you..
Now, I'm having the error : The specified LDAP attribute mail was not
found.
Good luck for us.
Best regards,
Mariana Hoffart Dias
I suspect your base DN is 'OU=usuarios,DC=teste,DC=com,DC=br'.
Emmanuel
I tried it to, but when I change to this sentence, I have the error :
"Bugzilla has suffered an internal error. Please save this page and
send it to c...@hst.com.br with details of what you were doing at the
time this message appeared.
URL: http://X.X.X.X:359/index.cgi
The specified LDAP attribute mail was not found."
Is strange because at the form below, now I have the error, but the
user exists :
"The username or password you entered is not valid."
Bugzilla :
'LDAPBaseDN' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br',
'LDAPbinddn' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br:password',
'LDAPfilter' => '',
'LDAPmailattribute' => 'mail',
'LDAPserver' => 'ldap://X.X.X.X:389/',
'LDAPstarttls' => 0,
'LDAPuidattribute' => 'userPrincipalName',
I tried the login as "user" or "us...@teste.com.br" and nothing. Always
the same error.
I don't know what to do...I'm trying, if you can help me...
Thanks a lot,
Mariana Hoffart Dias
Not sure if this relates to my binding problem though.
Jake
> _______________________________________________
> support-bugzilla mailing list
> support-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/support-bugzilla
> PLEASE put support-...@lists.mozilla.org in the To: field when you reply.
>
Thanks a lot!!!! You was right! I inserd the attribute "mail" at LDAP
and the Bugzilla is logged.
Below, you can see the configuration, maybe help you to...
data/params :
--------------------
%param = (
'LDAPBaseDN' => 'OU=usuarios,DC=teste,DC=com,DC=br',
'LDAPbinddn' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=br:password',
'LDAPfilter' => '',
'LDAPmailattribute' => 'mail',
'LDAPserver' => 'ldap://X.X.X.X:389/',
'LDAPstarttls' => 0,
'LDAPuidattribute' => 'sAMAccountName',
...
'user_info_class' => 'CGI',
'user_verify_class' => 'LDAP,DB',
....
LDAP
--------
Insert the attribut "mail".
But, and your problem? Can you resolve it?
Again, Thanks a lot.
Best Regards,
Mariana Hoffart Dias
> > I tried the login as "user" or "u...@teste.com.br" and nothing. Always
> > the same error.
>
> > I don't know what to do...I'm trying, if you can help me...
>
> > Thanks a lot,
> > Mariana Hoffart Dias
>
> > _______________________________________________
> > support-bugzilla mailing list
> > support-bugzi...@lists.mozilla.org
> >https://lists.mozilla.org/listinfo/support-bugzilla
> > PLEASE put support-bugzi...@lists.mozilla.org in the To: field when you reply.
MYPASSWORD always comes at the end.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
Best Regards,
Ville-Pekka Vahteala
I resolved this a some time...Below the configuration that works for
me.
data/params :
--------------------
'LDAPBaseDN' => 'OU=usuarios,DC=teste,DC=com,DC=br',
'LDAPbinddn' =>
'CN=AdminBugzilla,OU=usuarios,DC=teste,DC=com,DC=password',
'LDAPfilter' => '',
'LDAPmailattribute' => 'mail',
'LDAPserver' => 'ldap://X.X.X.X:389/',
'LDAPstarttls' => 0,
'LDAPuidattribute' => 'sAMAccountName',
'user_verify_class' => 'LDAP,DB'