Cannot login as newly created LDAP user
- From: Alexander Skwar <alexander@xxxxxxxxxx>
- Date: Tue, 14 Aug 2007 11:55:48 +0200
Hello.
I'm using LDAP for authentication purposes even for the normal Unix
accounts. LDAP server is OpenLDAP 2.3.35, built by Blastwave:
,----[ pkginfo -l CSWoldap ]
| PKGINST: CSWoldap
| NAME: openldap - OpenLDAP standalone server and update replication daemons (oldap)
| CATEGORY: application
| ARCH: sparc
| VERSION: 2.3.35,REV=2007.04.14
| BASEDIR: /
| VENDOR: http://www.openldap.org/ packaged for CSW by Alex Moore
| PSTAMP: ra20070414174122
| INSTDATE: Jul 17 2007 11:25
| HOTLINE: http://www.blastwave.org/bugtrack/
| EMAIL: asmoore@xxxxxxxxxxxxx
| STATUS: completely installed
| FILES: 146 installed pathnames
| 7 shared pathnames
| 15 directories
| 53 executables
| 6923 blocks used (approx)
`----
With "old" accounts, I'm able to telnet login to every machine. I just
now created a new account, and with that account, I cannot login on one
server (winds05). I'm using LDAP client stuff from Sun on that machine.
,----[ /var/ldap/ldap_client_file ]
| #
| # Do not edit this file manually; your changes will be lost.Please use ldapclient (1M) instead.
| #
| NS_LDAP_FILE_VERSION= 2.0
| NS_LDAP_SERVERS= 10.0.1.26
| NS_LDAP_SEARCH_BASEDN= ou=RACE,o=Example
| NS_LDAP_AUTH= simple
| NS_LDAP_SEARCH_SCOPE= sub
| NS_LDAP_CACHETTL= 3600
| NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=People,ou=RACE,o=Example?one
| NS_LDAP_SERVICE_SEARCH_DESC= shadow:ou=People,ou=RACE,o=Example?one
| NS_LDAP_SERVICE_SEARCH_DESC= group:ou=Group,ou=RACE,o=Example?one
| NS_LDAP_SERVICE_SEARCH_DESC= hosts:ou=Hosts,ou=RACE,o=Example?one
| NS_LDAP_SERVICE_SEARCH_DESC= services:ou=Services,ou=RACE,o=Example?one
| NS_LDAP_SERVICE_AUTH_METHOD= pam_ldap:simple
`----
In LDAP, the newly created account looks like this:
,----[ LDIF Export of newly created account ]
| version: 1
|
| # LDIF Export for: uid=testme,ou=People,ou=RACE,o=Example
| # Generated by phpLDAPadmin ( http://phpldapadmin.sourceforge.net/ ) on August 14, 2007 11:27 am
| # Server: RACE LDAP Server (winds06)
| # Search Scope: base
| # Search Filter: (objectClass=*)
| # Total Entries: 1
|
| dn: uid=testme,ou=People,ou=RACE,o=Example
| gidNumber: 10
| host: winnb000488
| host: winnb000488.win.ch.da.rtr
| host: winds06
| host: winds06.win.ch.da.rtr
| host: winds05
| host: winds05.win.ch.da.rtr
| loginShell: /opt/csw/bin/bash
| mailHost: mail1.Exampleauto.com
| objectClass: inetLocalMailRecipient
| objectClass: person
| objectClass: organizationalPerson
| objectClass: inetOrgPerson
| objectClass: posixAccount
| objectClass: top
| objectClass: shadowAccount
| objectClass: hostObject
| shadowLastChange: 13503
| uid: testme
| cn: Test User
| gecos: Test Me User,testme@xxxxxx
| givenName: Test
| homeDirectory: /tmp/testme
| mail: testme@xxxxxxx
| mailRoutingAddress: testme@xxxxxxx
| roomNumber: testme@xxxxxxx
| sn: User
| uidNumber: 12345
| userPassword: {CRYPT}Io0.0TeGweGNU
`----
To be on the safe side, I copied the entry from a working entry
and modified required bits (userPassword, uidNumber, uid, dn, ...).
The system CAN resolve the newly created account:
,----[ getent passwd testme ]
| testme::12345:10:Test Me User,testme@xxxxxx:/tmp/testme:/opt/csw/bin/bash
`----
$HOME directory and login shell exist:
,----[ ls -lad /tmp/testme /opt/csw/bin/bash ]
| -rwxr-xr-x 1 root bin 1041448 Mar 10 00:52 /opt/csw/bin/bash
| drwxr-xr-x 2 testme staff 117 Aug 14 11:13 /tmp/testme
`----
I'm using this login shell for other accounts as well.
I haven't provided any logs, as I don't find any logs which seem to
relate to this :( Maybe I'm looking at the wrong places - I looked
in syslog (independent of level/facility). The only thing I find is
this for the LDAP server:
,----[ Log message ]
| Aug 14 11:37:54 winds06 slapd[11227]: [ID 925615 local4.debug] <= bdb_equality_candidates: (uid) index_param failed (18)
| Aug 14 11:37:54 winds06 slapd[11227]: [ID 580335 local4.debug] conn=2014 op=0 ENTRY dn="uid=testme,ou=people,ou=race,o=example"
`----
But that's it :( I now started slapd with a loglevel of 256, but this
also doesn't provide ME with helpful messages. You can find the output
at <http://askwar.pastebin.ca/656696>.
,----[ /etc/pam.conf ]
| login auth requisite pam_authtok_get.so.1
| login auth required pam_dhkeys.so.1
| login auth required pam_unix_auth.so.1
| login auth required pam_dial_auth.so.1
| rlogin auth sufficient pam_rhosts_auth.so.1
| rlogin auth requisite pam_authtok_get.so.1
| rlogin auth required pam_dhkeys.so.1
| rlogin auth required pam_unix_auth.so.1
| rsh auth sufficient pam_rhosts_auth.so.1
| rsh auth required pam_unix_auth.so.1
| ppp auth requisite pam_authtok_get.so.1
| ppp auth required pam_dhkeys.so.1
| ppp auth required pam_unix_auth.so.1
| ppp auth required pam_dial_auth.so.1
| other auth requisite pam_authtok_get.so.1
| other auth required pam_dhkeys.so.1
| other auth required pam_unix_auth.so.1
| passwd auth required pam_passwd_auth.so.1
| cron account required pam_projects.so.1
| cron account required pam_unix_account.so.1
| other account requisite pam_roles.so.1
| other account required pam_projects.so.1
| other account required pam_unix_account.so.1
| other session required pam_unix_session.so.1
| other password required pam_dhkeys.so.1
| other password requisite pam_authtok_get.so.1
| other password requisite pam_authtok_check.so.1
| other password required pam_authtok_store.so.1
`----
,----[ /etc/nsswitch.conf ]
| passwd: files ldap
| group: files ldap
| hosts: ldap files dns
| ipnodes: ldap files
| networks: ldap [NOTFOUND=return] files
| protocols: ldap [NOTFOUND=return] files
| rpc: ldap [NOTFOUND=return] files
| ethers: ldap [NOTFOUND=return] files
| netmasks: ldap [NOTFOUND=return] files
| bootparams: ldap [NOTFOUND=return] files
| publickey: ldap [NOTFOUND=return] files
| netgroup: ldap
| automount: files ldap
| aliases: files ldap
| services: files ldap
| printers: user files ldap
| auth_attr: files ldap
| prof_attr: files ldap
| project: files ldap
`----
Why am I unable to telnet login with this newly created account?
Thanks a lot,
Alexander Skwar
.
- Prev by Date: Re: Justification for keeping Desktop Solaris workstation
- Next by Date: Re: Using hot swapable SCSI HardDisk for Data Transfer
- Previous by thread: RSC on ultra 60
- Next by thread: patrchadd dryrun terminology
- Index(es):
Relevant Pages
|