Hi, Thank you all for your help, it seems I solved the problem, the only thing one have to do is to right the right parameters in the ldap.xml, resp. inside <ldap:rootdn> (as Yury pointed out in his email).
Thanks, Stephanie > Hi, > > I'm using the Cocoon portal framework with a LDAP authentication. > I have only modified the authentication pipeline to retrieve user > information from a LDAP system instead of a XML file. > The authentication works with a username and a password. > > Maybe you could take a look how the authentication is managed in the > Cocoon portal...? > > Regards > Sylvain > > > -----Message d'origine----- > > De: Yury Mikhienko [mailto:[EMAIL PROTECTED] > > Date: jeudi, 20. novembre 2003 15:33 > > �: [EMAIL PROTECTED] > > Objet: Re: LDAP authentification with username and password > > > > > > Can you use another way? > > For example (one step): > > > > Try get the some attribute (uid, for example) from LDAP (with > > LDAPTransformer): > > > > > > <ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer> > > <ldap:serverurl>ldap://ldaphost</ldap:serverurl> > > <ldap:port>389</ldap:port> > > <ldap:scope>ONELEVEL_SCOPE</ldap:scope> > > > > <ldap:rootdn>uid=<xsp:expr>request.getParameter("username")</x > > sp:expr>,ou=people,o=mycompany</ldap:rootdn> > > > > <ldap:password><xsp:expr>request.getParameter("password")</xsp > > :expr></ldap:password> > > <ldap:attribute>title</ldap:attribute> > > <ldap:attribute>mobile</ldap:attribute> > > <ldap:attribute>cn</ldap:attribute> > > <ldap:attribute>uid</ldap:attribute> > > <ldap:show-attribute>true</ldap:show-attribute> > > </ldap:execute-query> > > > > > > > Hi, > > > > > > I make use of the LDAP transformer for authentification in my web > > > application. > > > > > > When I understood the documentation right then > > Authentification requires 2 > > > steps: > > > > > > 1. get all necessary user data (username & password) from > > all users in LDAP > > > 2. Compare the username/password provided with the login > > with all data sets > > > retrieved from LDAP, if there is a match, the authenfification was > > > successful. > > > > > > Is that right? > > > > > > Here's my problem then. > > > > > > I can retrieve both, username and password, but how can I > > compare the > > > passwords. The password retrieved from LDAP is encrypted. > > So in order to > > > compare > > > them, I need to encrypt the password on Cocoon side with > > the same algoithm, > > > right. > > > Where do I get the encryption algorithm from? > > > > > > I guess that almost everybody who does authentication with > > LDAP must have > > > had the problem, so how did you solve it? > > > > > > Please if there are any solution out there, post them, I > > guess, it could be > > > very helpful for a lot of members (maybe it's worth a wiki > > contribution?). > > > > > > Thanks Stephanie > > > > > > -- > > > > Best regards, > > Yury Mikhienko. > > IT ERP group head, ZAO "Mobikom-Kavkaz" > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse f�r Mail, Message, More! +++ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
