Closed GoogleCodeExporter closed 8 years ago
The problem might be your port number. I believe active directory uses 3268.
Original comment by jzy...@gmail.com
on 19 Nov 2007 at 2:41
I would not be able to connect after the fixing the code if the port was wrong.
And
this port number is set in my openldap configuration.
Original comment by ignas.mi...@gmail.com
on 19 Nov 2007 at 3:48
Sorry, I was thrown off by your use of the ActiveDirectoryLDAP authenticator.
I'll
take a look at your code. Thanks
Original comment by jzy...@gmail.com
on 19 Nov 2007 at 4:57
What kind of LDAP server are you authenticating against? It looks like you're
using
the ActiveDirectory LDAP authenticator, but your use of 'ldapadd' suggests
you're
actually connecting to an OpenLDAP server?
I suppose that either should work, since the only difference between the
regular LDAP
authenticator and ActiveDirectoryLDAP is that the AD one has the default
username
attribute set to 'sAMAccountName', while the regular one has 'uid'... but in
your
configuration, you are not specifying an auth_username or auth_password, so the
authenticator will try to bind to the LDAP server directly using the
credentials of
the user that's logging in, rather than as your 'cn=admin,dc=localhost' user.
In this
case, the default username attribute doesn't matter at all -- it is never used.
By the way, i have it set to 'uid' instead of 'cn', since I was under the
impression
that 'uid' is the standard username attribute in most LDAP servers.
Original comment by matt.zuk...@gmail.com
on 29 Nov 2007 at 4:49
Okay I think t his has been addressed as of revision 325 (this will be released
in
the upcoming version 0.7.0 of the server).
Have a look at the solution to issue #57 here
http://code.google.com/p/rubycas-server/issues/detail?id=57&can=1&q=ldap
Original comment by matt.zuk...@gmail.com
on 26 Sep 2008 at 6:36
Original issue reported on code.google.com by
ignas.mi...@gmail.com
on 24 Oct 2007 at 4:12