> I had been trying to reset the ldappasswd for these users (jmaan and
ldapusr) but again it gives me "invalid credentials" as shown below :
> [root@authdns log]# ldappasswd -h localhost -p 389 -x -D
uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in -WEnter LDAP Password:
uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in, part of the
process
is providing the original users password, if you don't know it that
isn't going
to work.
> directory /var/lib/ldap
> index objectClass eq,pres index
ou,cn,mail,surname,givenname eq,pres,sub
> index uidNumber,gidNumber,loginShell eq,pres
> index uid,memberUid eq,pres,sub
> index nisMapName,nisMapEntry eq,pres,sub
>
>
> access to attrs=userPassword
> by * auth
> by self write
> access to *
> by * read
> access to *
> by dn="cn=Manager,dc=nits,dc=ac,dc=in" write
> by
dn="uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" read
> by
dn="uid=ldapusr,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" read
> by dn="uid=usr1,dc=nits,dc=ac,dc=in" read
> by users read
> by self write
> by * read
>
> lastmod on
> access to * by users read
> authz-regexp
> uid=([^,]*),dc=[^,]*,cn=auth
> uid=$1,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in
> loglevel -1
>
> Thank you for taking efforts to read till this line. Now please show
me your expertise on this, and let me resolve this authentication ?
>
> Jyotishmaan
> Moderator Of Paradise Groups
>
http://yahoogroups.com/group/Spirituality-Paradise>
> Are You Spiritually Aware !!! Are You Enjoying Yourself !!! See
What All You Had Been Missing !!!!
> Please Join Immediately By Sending A Blank Mail @
>
Spirituality-Paradise-subscribe@... >
>
>
>
>
>
>
>
>
>
>
>
>
>
> ----- Original Message ----
> From: Alex Samad <
alex@...>
> To:
pamldap@...> Sent: Friday, December 21, 2007 3:42:30 AM
> Subject: Re: [pamldap] Authentication Failure In pam_ldap ?
>
>
> On Wed, Dec 19, 2007 at 10:59:17PM -0800, Jyotishmaan Ray wrote:
> >
> > Hello Alex,
> >
>
> Thank you for giving me tips on ldapsearch with -x and -D.
> >
> > The output of a ldapsearch with -x and -D options is as shown
below:-
> >
> > [root@authdns ~]# ldapsearch -h
authdns.nits.ac.in -p 389 -x -D
> cn=Manager,dc=nits,dc=ac,dc=in -W -b dc=nits,dc=ac,dc=in
'(uid=jmaan)'
> > Enter LDAP Password:
> > # extended LDIF
> > #
> > # LDAPv3
> > # base <dc=nits,dc=ac,dc=in> with scope subtree
> > # filter: (uid=jmaan)
> > # requesting: ALL
> > #
> >
> > # jmaan, non-teach, compcen,
nits.ac.in> > dn: uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in
> > uid: jmaan
> > cn: jmaan
> > objectClass: account
> > objectClass: posixAccount
> > userPassword:: JDEkOVE1ZDRQdzUkWkl1QlJjQWhLZ0xPREtTR2FrNlhNMQ==
> > loginShell: /bin/bash
> > uidNumber: 623
> > gidNumber: 623
> > homeDirectory: /home/jmaan
> >
> > # search result
> > search: 2
> > result: 0 Success
> >
> > # numResponses: 2
> > # numEntries: 1
> >
[root@authdns ~]#
> great now you know that cn=Manager,dc=nits,dc=ac,dc=in works
>
> >
> > The output of ldapsearch when used with -x and -D options with dn
for
> the user "jmaan" is as shown below when the passoword for jmaan was
> used:-
> >
> >
> > [root@authdns ~]# ldapsearch -h
authdns.nits.ac.in -p 389 -x -D
> 'uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in' -W
> > Enter LDAP Password:
> > ldap_bind: Invalid credentials (49)
> > [root@authdns ~]#
>
> this is the test that should have been done from the begging you are
> simulating
> what pamldap does (with out sasl auth), I would make sure you -h and
-p
>
> corrospond with what you have in you pamldap.conf file
>
> >
> > When the ldapsearch is used with -x and -D options and the password
> of the autenticating Manager was used then the ldapsearch is a
> successful one as shown below:-
> >
> > [root@authdns ~]# ldapsearch -h
authdns.nits.ac.in -p 389 -x -D '
> cn=Manager,dc=nits,dc=ac,dc=in' -W '(uid=jmaan)'
> > Enter LDAP Password:
> > # extended LDIF
> > #
> > # LDAPv3
> > # base <> with scope subtree
> > # filter: (uid=jmaan)
> > # requesting: ALL
> > #
> >
> > # jmaan, non-teach, compcen,
nits.ac.in> > dn: uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in
> > uid:
jmaan
> > cn: jmaan
> > objectClass: account
> > objectClass: posixAccount
> > userPassword:: JDEkOVE1ZDRQdzUkWkl1QlJjQWhLZ0xPREtTR2FrNlhNMQ==
> > loginShell: /bin/bash
> > uidNumber: 623
> > gidNumber: 623
> > homeDirectory: /home/jmaan
> >
> > # search result
> > search: 2
> > result: 0 Success
> >
> > # numResponses: 2
> > # numEntries: 1
> >
> > Now please give me insights in this!!!! In both of the cases for
the
> user-"jmaan" everything matches with the imported file of the user
> "jmaan" except for the password (where the password was in md5
format,
> while importing). Is it because of this mismatch that i could not
log
> through the console in the server machine using the user id-"jmaan"
?
> > Also are the reasons same for unsuccessful log on using ssh
> <hostname> -l <uid>
> please forget about ssh until you get the ldap bind working.
> and yes this is the reason it is not working. try resetting the
> password for
> that user. Once you have the ldap bind working then test login in
form
> the
> console and then ssh.
>
> use the admin account to change the password for jmaan
> >
> > Please let me, Alex!! More to know from you, as i cannot see any
> other ways!!!!
> >
> >
> >
> > Thanking you,
> >
> > Regards,
> >
> > Jyotishmaan
> >
> >
> >
> >
> > With Thanks and Regards,
> > Jyotishmaan Ray
> > Moderator Of Paradise Groups
> >
http://yahoogroups.com/group/Spirituality-Paradise> >
> > Are You Spiritually Aware !!! Are You Enjoying Yourself !!! See
> What All You Had Been Missing !!!!
> > Please Join Immediately By Sending A Blank Mail @
> >
Spirituality-Paradise-subscribe@... > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
>
>
>
>
>
____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
>
http://www.yahoo.com/r/hs