safaacar / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Is rubycas-server openLDAP compatible #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
So my server run
But I can't to log on CAS with a linux Etch (debian) server with ruby 1.8.5
and openLDAP

RubyCAS-Server was installed by rubygem
I have make this choice: webrick server

is openLDAP compatible with activeDirectoryLDAP ?

How can I config this ?
Regards

Original issue reported on code.google.com by mrt...@gmail.com on 4 Mar 2008 at 9:13

GoogleCodeExporter commented 9 years ago
Can you post the authenticator stuff from your config.yml? I'd like to see how 
you
have it configured.

Theoretically RubyCAS-Server should work fine with OpenLDAP, although I don't 
have an
OpenLDAP server so I can't test it. I've only tested it against ActiveDirectory 
LDAP,
and for that it works great.

Original comment by matt.zuk...@gmail.com on 4 Mar 2008 at 11:48

GoogleCodeExporter commented 9 years ago
in fact my LDAP has this structure
people are in ou=People,dc=..,dc=..,dc=..
They are a uid (uid=foo)
and a userpassword

They can log directly with uid=foo,ou=People,dc=..,dc=..,dc=..
and the password

I try with this config

class: CASSERVER::Authentificators::ActiveDirectoryLDAP
ldap:
  server: localhost
  port:  389
  base: ou=People,dc=..,dc=..,dc=..
  filter: objectClass=person

But it don't works why ?

Thanks for Help
Regards.
Sebastien TACK

Original comment by mrt...@gmail.com on 6 Mar 2008 at 12:26

GoogleCodeExporter commented 9 years ago
Use the LDAP authenticator, not ActiveDirectoryLDAP. Also, it's case sensitive.

Try this:

class: CASServer::Authentificators::LDAP
ldap:
  server: localhost
  port:  389
  base: ou=People,dc=..,dc=..,dc=..
  filter: objectClass=person

Original comment by matt.zuk...@gmail.com on 6 Mar 2008 at 3:45

GoogleCodeExporter commented 9 years ago
Oops, actually that should be:

class: CASServer::Authenticators::LDAP
ldap:
  server: localhost
  port:  389
  base: ou=People,dc=..,dc=..,dc=..
  filter: objectClass=person

"Authenticators", not "Authentificators" :)

Original comment by matt.zuk...@gmail.com on 6 Mar 2008 at 3:46

GoogleCodeExporter commented 9 years ago
So I have write my own class of Authenticator and rewriting my own validate 
method.
And now it works.

Thanks for this works.
Regards
Tack sebastien

Original comment by mrt...@gmail.com on 10 Mar 2008 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by matt.zuk...@gmail.com on 10 Mar 2008 at 7:44