|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Authentication Failure In pam_ldap ?Dear pam_ldap experts,
This is Jyotishmaan. Please let me know why i am getting these errors, while executing ssh command. before that i would like to say this that this user is there in my ldap server. Proof of this is given below this command sample output which i got by executing the command, finger "jmaan". [root@authdns etc]# ssh authdns.nits.ac.in -l jmaan jmaan@authdns.nits.ac.in's password: Permission denied, please try again. jmaan@authdns.nits.ac.in's password: Permission denied, please try again. jmaan@authdns.nits.ac.in's password: Permission denied (publickey,gssapi-with-mic,password). [root@authdns etc]# [root@authdns etc]# finger jmaan Login: jmaan Name: jmaan Directory: /home/jmaan Shell: /bin/bash Last login Wed Nov 28 19:29 (IST) on pts/6 from authdns.nits.ac.in No mail. No Plan. [root@authdns etc]# The output of the command- id "jmaan", is also given below:- [root@authdns etc]# id jmaan uid=623(jmaan) gid=623 groups=623 context=root:system_r:unconfined_t:s0-s0:c0.c1023 [root@authdns etc]# This is the proof, that both the users are there in my ldap server database.Now please look at below the lines of /etc/ldap.conf file of my ldap server machine are also shown as below:- [root@authdns etc]# grep '^[^#]' /etc/ldap.conf host 127.0.0.1 base dc=nits,dc=ac,dc=in uri ldap://127.0.0.1/ ldap_version 3 scope sub timelimit 120 bind_timelimit 120 bind_policy hard idle_timelimit 3600 pam_filter objectclass=posixAccount pam_login_attribute uid nss_base_passwd uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in nss_base_passwd uid=ldapusr,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in nss_initgroups_ignoreusers root,ldap,named,avahi,haldaemon pam_sasl_mech DIGEST-MD5 uri ldap://127.0.0.1/ ssl no tls_cacertdir /etc/openldap/cacerts sasl_authid nssldap/localhost.localdomain rootuse_sasl yes rootsasl_auth_id nssldap/localhost.localdomain pam_password md5 [root@authdns etc]# Please let me know what went wrong or has to be included in this file. Also the output of the command, /usr/bin/authconfig-tui where i had set up the Authentication configuration using LDAP, that uses MD 5 password, and Local Authorization (i dont knw however if this is important). The authentication configuartion can also be set using the command:- system-config-authentication where the configuration can be set up through the GUI. Now please tell me why this command is also not executing:- ldapwhoami Should i use the Manager's (of LDAP server having all adminitrative privileges) or simpy userid- root's password.( MD5 password )? When i used the Manager's MD5 password i got the following error:- [root@authdns etc]# ldapwhoami SASL/DIGEST-MD5 authentication started Please enter your password: ldap_sasl_interactive_bind_s: Invalid credentials (49) additional info: SASL(-13): user not found: no secret in database [root@authdns etc]# Also please see the log of /var/log/messages file for the errors when the user ldapusr/ jmaan tried logging onto the LDAP server machine, through the GUI of Linux fedora os. Dec 12 14:30:41 authdns gdm[4091]: Couldn't authenticate user Dec 12 14:30:50 authdns gdm[4091]: pam_ldap: error trying to bind as user "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) Dec 12 14:30:52 authdns gdm[4091]: Couldn't authenticate user Dec 12 14:31:00 authdns gdm[4091]: pam_ldap: error trying to bind as user "uid=ldapusr,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) All these above lines were got with slightly different version of /etc/ldap.conf. The following lines of /var/log/messages were obtained from the above version of /etc/ldap.conf file as mentioned above. Dec 12 15:15:36 authdns gdm[4091]: Couldn't authenticate user Dec 12 15:16:13 authdns gdm[4091]: Couldn't authenticate user Dec 12 15:16:56 authdns last message repeated 3 times Dec 12 15:17:05 authdns gconfd (root-14308): starting (version 2.18.0.1), pid 14308 user 'root' Dec 12 15:17:05 authdns gconfd (root-14308): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0 Dec 12 15:17:05 authdns gconfd (root-14308): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1 Dec 12 15:17:05 authdns gconfd (root-14308): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2 Dec 12 15:17:06 authdns gconfd (root-14308): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 0 Dec 12 15:17:08 authdns setroubleshoot: [rpc.ERROR] attempt to open server connection failed: (2, 'No such file or directory' Please kindly let me where and why my authentication is failing ??? With Warm Cheering Regards, Jyotishmaanldap.conf |
|
|
Re: Authentication Failure In pam_ldap ?can the user login via a console does that work
On Wed, Dec 12, 2007 at 04:55:57AM -0800, Jyotishmaan wrote: > > Dear pam_ldap experts, > [snip] > [root@authdns etc]# ldapwhoami SASL/DIGEST-MD5 authentication started > Please enter your password: > ldap_sasl_interactive_bind_s: Invalid credentials (49) > additional info: SASL(-13): user not found: no secret in database > [root@authdns etc]# you are trying to bind with sasl is that setup , you might want to try ldapwhoami with -D > > Also please see the log of /var/log/messages file for the errors when the > user ldapusr/ jmaan tried logging onto the LDAP server machine, through the > GUI of Linux fedora os. > > > Dec 12 14:30:41 authdns gdm[4091]: Couldn't authenticate user > Dec 12 14:30:50 authdns gdm[4091]: pam_ldap: error trying to bind as user > "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid > credentials) try ldapseach -D "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" -x once that is working then move on to the pam problem [snip] might also want to try login in via a console as well > > > Please kindly let me where and why my authentication is failing ??? > > With Warm Cheering Regards, > Jyotishmaan http://www.nabble.com/file/p14292650/ldap.conf ldap.conf > -- > View this message in context: http://www.nabble.com/Authentication-Failure-In-pam_ldap---tp14292650p14292650.html > Sent from the PAM LDAP mailing list archive at Nabble.com. > > |
|
|
Re: Authentication Failure In pam_ldap ?This command ldapwhoami -D does not give successful result.
[root@authdns etc]# ldapwhoami SASL/DIGEST-MD5 authentication started Please enter your password: ldap_sasl_interactive_bind_s: Invalid credentials (49) additional info: SASL(-13): user not found: no secret in database [root@authdns etc]# ldap.conf |
|
|
Re: Authentication Failure In pam_ldap ?Alex, My slapd.conf file is shown as below: [root@authdns openldap]# egrep -v '^(^$|#)' /etc/ldap.conf base dc=nits,dc=ac,dc=in timelimit 120 bind_timelimit 120 idle_timelimit 3600 nss_initgroups_ignoreusers root,ldap,named,avahi,haldaemon uri ldap://127.0.0.1/ ssl no pam_password md5 [root@authdns openldap]# egrep -v '^(^$|#)' /etc/openldap/slapd.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/nit.schema access to * by * read allow bind_v2 pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args database bdb suffix "dc=nits,dc=ac,dc=in" rootdn "cn=Manager,dc=nits,dc=ac,dc=in" rootpw {SSHA}Y3RagOP7u3FsNbHCnPVLwsxUepwIgezo 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 lastmod on access to * by users read [root@authdns openldap]# Please let me know if i have to include any modules like as shown below:- # Load dynamic backend modules: # modulepath /usr/lib/openldap # moduleload back_bdb.la # moduleload back_ldap.la # moduleload back_ldbm.la # moduleload back_passwd.la # moduleload back_shell.la Thanks, Jyotishmaan |
|
|
|
|
|
|
|
|
Re: Authentication Failure In pam_ldap ?Hello Alex, i have tried using -D and without using -x, as shown below, however the output of these commands are not successful. They are shown as below:- [root@authdns ~]# ldapsearch -D 'uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in' SASL/DIGEST-MD5 authentication started Please enter your password: ldap_sasl_interactive_bind_s: Invalid credentials (49) additional info: SASL(-13): user not found: no secret in database Now the question is, should i enable sasl/ tls in my /etc/ldap.conf file ? Is it that, we need to have by default - LDAP authentication ?? Thanks And Regards, Jyotishmaan
|
|
|
Re: Authentication Failure In pam_ldap ?Jyotishmaan skrev, on 15-12-2007 06:56:
> i have tried using -D and without using -x, as shown below, however the > output of these commands are not successful. > They are shown as below:- > > [root@authdns ~]# ldapsearch -D > 'uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in' > SASL/DIGEST-MD5 authentication started > Please enter your password: > ldap_sasl_interactive_bind_s: Invalid credentials (49) > additional info: SASL(-13): user not found: no secret in database You are really *not* using '-x' in your command string, otherwise you wouldn't get the above. You really *do* need to read the man page for ldapsearch and the admin guide. --Tonni -- Tony Earnshaw Email: tonni at hetnet dot nl |
|
|
Re: Authentication Failure In pam_ldap ?Hi Tony, Please see below the output of the command ldapsearch with -x option. However this is not using sasl to bind to the ldap server. Now please guide me what should i do next?? I have sent you a few mails in details and enclosing all the files!! Thanks, Jyotishmaan [root@authdns /]# ldapsearch -x 'uid=jmaan,stornt=non-teach,bn =compcen,dc=nits,dc=ac,dc=in' # extended LDIF # # LDAPv3 # base <> with scope subtree # filter: uid=jmaan,stornt=non-teach,bn =compcen,dc=nits,dc=ac,dc=in # requesting: ALL # # search result search: 2 result: 0 Success # numResponses: 1 [root@authdns /]#
|
|
|
Re: Authentication Failure In pam_ldap ?Jyotishmaan skrev, on 15-12-2007 10:32:
> Please see below the output of the command ldapsearch with -x option. > > However this is not using sasl to bind to the ldap server. > > Now please guide me what should i do next?? tail -f the log at -d 256 (Stats) and see what the output is. > I have sent you a few mails in details and enclosing all the files!! All I can say is what I posted in another thread: Read the man page for ldapsearch and start again from scratch using the Admin guide quick start section. Questions pertaining to OpenLDAP should be asked on the OL list. Get the OL stuff working first, then come back to this list with pam questions, to the nssldap list with nss questions. Do one thing at a time. --Tonni -- Tony Earnshaw Email: tonni at hetnet dot nl |
|
|
|
|
|
|
|
|
Re: Authentication Failure In pam_ldap ?On Fri, Dec 14, 2007 at 09:56:11PM -0800, Jyotishmaan wrote:
> > > Hello Alex, > > i have tried using -D and without using -x, as shown below, however the > output of these commands are not successful. > They are shown as below:- > > [root@authdns ~]# ldapsearch -D > 'uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in' > SASL/DIGEST-MD5 authentication started > Please enter your password: > ldap_sasl_interactive_bind_s: Invalid credentials (49) > additional info: SASL(-13): user not found: no secret in database > > Now the question is, should i enable sasl/ tls in my /etc/ldap.conf file ? > > Is it that, we need to have by default - > > LDAP authentication ?? > > Thanks And Regards, > > Jyotishmaan simplistic binding to the ldap service to authenticate. Get your ldapsearch to work first (with the -x and -D) and then look at the pam_ldap.... 1 step at a time. I would also suggest that you really need to read the man pages for ldapsearch especially the section on -x and -D and also check out the openldap web site they have a faq-o-matic A > > > > Alex Samad wrote: > > > > On Thu, Dec 13, 2007 at 11:23:17PM -0800, jyotishmaan@... wrote: > >> Hello Alex, > >> > >> Please find below the reply of your mail. > >> > >> Alex Samad wrote: > >> > > >> > can the user login via a console does that work > >> > On Wed, Dec 12, 2007 at 04:55:57AM -0800, Jyotishmaan wrote: > >> >> > >> >> Dear pam_ldap experts, > >> >> > >> > [snip] > >> > > >> >> [root@authdns etc]# ldapwhoami SASL/DIGEST-MD5 authentication started > >> >> Please enter your password: > >> >> ldap_sasl_interactive_bind_s: Invalid credentials (49) > >> >> additional info: SASL(-13): user not found: no secret in > >> database > >> >> [root@authdns etc]# > >> > > >> > you are trying to bind with sasl is that setup , you might want to try > >> > ldapwhoami with -D > >> > >> > >> > >> This command ldapwhoami -D does not give successful result. > >> > >> [root@authdns etc]# ldapwhoami > >> SASL/DIGEST-MD5 authentication started > >> Please enter your password: > >> ldap_sasl_interactive_bind_s: Invalid credentials (49) > >> additional info: SASL(-13): user not found: no secret in database > >> [root@authdns etc]# > >> > >> > >> Now when i tried using the command ldapsearch as show below, it didnt > >> work fine. It is shown below:- > >> > >> [root@authdns bin]# ldapsearch -D 'uid=jmaan,stornt=non-teach,bn > >> =compcen,dc=nits,dc=ac,dc=in' > >> SASL/DIGEST-MD5 authentication started > >> Please enter your password: > >> ldap_sasl_interactive_bind_s: Invalid credentials (49) > >> additional info: SASL(-13): user not found: no secret in database > >> [root@authdns bin]# ldapsearch -W -D 'uid=jmaan,stornt=non-teach,bn > >> =compcen,dc=nits,dc=ac,dc=in' > >> Enter LDAP Password: > >> SASL/DIGEST-MD5 authentication started > >> ldap_sasl_interactive_bind_s: Invalid credentials (49) > >> additional info: SASL(-13): user not found: no secret in database > >> [root@authdns bin]# > >> > >> > >> [root@authdns bin]# ldapsearch -x -b 'uid=jmaan,stornt=non-teach,bn > >> =compcen,dc=nits,dc=ac,dc=in' > >> # extended LDIF > >> # > >> # LDAPv3 > >> # base <uid=jmaan,stornt=non-teach,bn =compcen,dc=nits,dc=ac,dc=in> with > >> scope subtree > >> # filter: (objectclass=*) > >> # 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 > >> loginShell: /bin/bash > >> uidNumber: 623 > >> gidNumber: 623 > >> homeDirectory: /home/jmaan > >> > >> # search result > >> search: 2 > >> result: 0 Success > >> > >> # numResponses: 2 > >> # numEntries: 1 > >> [root@authdns bin]# > >> > >> However when ldapsearch -x -b options, it executes successfully. The same > >> command doesnt work with -W And -D options. > >> > >> The options -x means without using sasl, > >> however the option -b means, probably the base ??? (i will check it out) > >> ? > >> Please tell me why i am not able to log on to the server machine as > >> "jmaan" or "ldapusr" ?? > >> Also why ssh authdns.nits.ac.in -l jmaan or ldapusr is not working fine > >> ?? > >> > >> Please give reasons why they are failing ?????? > > You need to try -x for simple auth (do you have sasl setup ?) and -D to > > provide > > the bind cn, all you have done above is prove you have annonymous access > > and > > that the dn uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in > > exists > > > >> > >> Thank you so much for fast responses !!! > >> > >> > >> Jyotishmaan > >> > >> > >> > >> > >> >> > >> >> Also please see the log of /var/log/messages file for the errors when > >> the > >> >> user ldapusr/ jmaan tried logging onto the LDAP server machine, > >> through > >> >> the > >> >> GUI of Linux fedora os. > >> >> > >> >> > >> >> Dec 12 14:30:41 authdns gdm[4091]: Couldn't authenticate user > >> >> Dec 12 14:30:50 authdns gdm[4091]: pam_ldap: error trying to bind as > >> user > >> >> "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid > >> >> credentials) > >> > sounds like password problems > >> > > >> > try > >> > > >> > ldapseach -D > >> "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" > >> > -x > >> > > >> > once that is working then move on to the pam problem > >> > > >> > > >> > [snip] > >> > > >> > might also want to try login in via a console as well > >> >> > >> >> > >> >> Please kindly let me where and why my authentication is failing ??? > >> >> > >> >> With Warm Cheering Regards, > >> >> Jyotishmaan http://www.nabble.com/file/p14292650/ldap.conf ldap.conf > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Authentication-Failure-In-pam_ldap---tp14292650p14292650.html > >> >> Sent from the PAM LDAP mailing list archive at Nabble.com. > >> >> > >> >> > >> > > >> > > >> > > >> Quoted from: > >> http://www.nabble.com/Authentication-Failure-In-pam_ldap---tp14292650p14327472.html > >> > >> > > > > > > > > -- > View this message in context: http://www.nabble.com/Authentication-Failure-In-pam_ldap---tp14292650p14348254.html > Sent from the PAM LDAP mailing list archive at Nabble.com. > > |
|
|
|
|
|
|
|
|
Re: 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 ~]# > > 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> 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 |
|
|
|
|
|
|
|
|
Re: Authentication Failure In pam_ldap ?On Fri, Dec 21, 2007 at 11:56:03PM -0800, Jyotishmaan Ray wrote:
> Hi All, > > ldapsearch > > -h <servername> -p <PortNumber> -x -D > > cn=Manager,dc=nits,dc=ac,dc=in -W -b dc=nits,dc=ac,dc=in '(uid=jmaan*)' > > works out fine as said before, but now the /var/log/messages is showing the following errors, when i had been trying continuously to login from the console in the ldap server machine using the dn of the users-"jmaan" and "ldapusr":- > > Please give directions/hints so that, i can somehow resolve the issues of authentication with pam_ldap ? > > It seems it could not bind with the ldsp server ? But then why? > > 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: > ldap_bind: Invalid credentials (49) If you look at the command, you are trying to change the password for dn 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. As with your other problems a quick scan of the man pages does provide the answer "ldappasswd sets the password of associated with the user [or an optionally specified user]." you need to bind as the manager uid and change the password of jmaan ldappasswd -h localhost -p 389 -x -D cn=Manager,dc=nits,dc=ac,dc=in -W uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in once this works, then try the ldapsearch with the -x -D then try the local login > > The messages from the /var/log/messages are shown below:- > > Dec 22 12:59:46 authdns gdm[2361]: pam_ldap: error trying to bind as user "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) > Dec 22 12:59:49 authdns gdm[2361]: Couldn't authenticate user > Dec 22 13:00:39 authdns gdm[2361]: pam_ldap: error trying to bind as user "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) > Dec 22 13:00:41 authdns gdm[2361]: Couldn't authenticate user > Dec 22 13:01:28 authdns gdm[2361]: pam_ldap: error trying to bind as user "uid=jmaan,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) > Dec 22 13:01:32 authdns gdm[2361]: Couldn't authenticate user > Dec 22 13:03:04 authdns gdm[2361]: pam_ldap: error trying to bind as user "uid=ldapusr,stornt=non-teach,bn=compcen,dc=nits,dc=ac,dc=in" (Invalid credentials) > Dec 22 13:03:07 authdns gdm[2361]: Couldn't authenticate user > > > My ldap.conf file of the ldap server machine is show below: > > [root@authdns log]# egrep -v '^(^$|#)' /etc/ldap.conf > > base dc=nits,dc=ac,dc=in > timelimit 120 > bind_timelimit 120 > idle_timelimit 3600 > nss_initgroups_ignoreusers root,ldap,named,avahi,haldaemon > uri ldap://127.0.0.1/ > ssl no > tls_cacertdir /etc/openldap/cacerts > pam_password md5 > > > > The slapd.conf file of my server machine is as shown below: > > [root@authdns log]# egrep -v '^(^$|#)' /etc/openldap/slapd.conf > include /etc/openldap/schema/core.schema > include /etc/openldap/schema/cosine.schema > include /etc/openldap/schema/inetorgperson.schema > include /etc/openldap/schema/nis.schema > include /etc/openldap/schema/nit.schema > access to * by * read > allow bind_v2 > pidfile /var/run/openldap/slapd.pid > argsfile /var/run/openldap/slapd.args > database bdb > suffix "dc=nits,dc=ac,dc=in" > rootdn "cn=Manager,dc=nits,dc=ac,dc=in" > rootpw {SSHA}Y3RagOP7u3FsNbHCnPVLwsxUepwIgezo > 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 |
|
|
|
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |