- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LDAP CDE/dtlogin problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 02:45 PM
08-24-2004 02:45 PM
LDAP CDE/dtlogin problem
I can login as telnet or su from another user.
Can anybody help me?
Thanks a lot!
This is the error msg I got:
syslog: user2netname: unknown nameservice ^I^I^I^I^Ifor publickey info 'ldap'
pam.conf
login auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1 debug
login auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass debug
su auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
su auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
dtlogin auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1 debug
dtlogin auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass debug
ftp auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
ftp auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
OTHER auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
#
# Account management
#
login account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login account required /usr/lib/security/$ISA/libpam_ldap.so.1
su account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
su account required /usr/lib/security/$ISA/libpam_ldap.so.1
ftp account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
ftp account required /usr/lib/security/$ISA/libpam_ldap.so.1
OTHER account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER account required /usr/lib/security/$ISA/libpam_ldap.so.1
#
# Session management
#
login session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login session required /usr/lib/security/$ISA/libpam_ldap.so.1
OTHER session required /usr/lib/security/$ISA/libpam_ldap.so.1
#
# Password management
#
login password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
passwd password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
passwd password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
OTHER password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
nsswitch.conf
passwd: files ldap
group: files ldap
hosts: ldap files dns
networks: files ldap
protocols: files ldap
rpc: files ldap
publickey: files
netgroup: files ldap
automount: files ldap
aliases: files ldap
services: files ldap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 04:03 PM
08-24-2004 04:03 PM
Re: LDAP CDE/dtlogin problem
I looked up the code for user2netname() and this function uses the "publickey" entry in the /etc/nsswitch.conf file to convert the unix credentials to a network-name.
The fact that your current /etc/nsswitch.conf file says:
publickey: files
but the syslog entry indicates "ldap" tells me that at one time, likely at boot time, the /etc/nsswitch.conf entry for publickey probably included "ldap".
Did you modify the /etc/nsswitch.conf file to remove "ldap" from the publickey entry after the system was booted? If so, you may need to reboot the system in order to get all running processes to re-read the current nsswitch.conf file, as most processes read this file once at initialization time and then don't refer to the file again until they are restarted.
Also, I don't think many of the entries in your nsswitch.conf file are valid for "ldap". I know for a fact that AutoFS (automount entry) doesn't support LDAP.
If you look at the /etc/nsswitch.ldap file you will see which services are supported for LDAP lookups. On my 11.23 system, this file contains:
#
# /etc/nsswitch.ldap:
#
# An example file that could be copied over to /etc/nsswitch.conf. It
# uses LDAP (Lightweight Directory Access Protocol) in conjunction with
# dns & files.
#
passwd: files ldap
group: files ldap
hosts: dns [NOTFOUND=return] files ldap
networks: files ldap
protocols: files ldap
rpc: files ldap
publickey: files
netgroup: files ldap
automount: files
aliases: files
services: files ldap
My recommendation is to copy the /etc/nsswitch.ldap file to /etc/nsswitch.conf and reboot the system in order to get all the running processes to use the new nsswitch.conf file. At least that would eliminate the possibility of a process using a bogus out-of-date nsswitch.conf entry that contains a reference to LDAP when it shouldn't.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 04:13 PM
08-24-2004 04:13 PM
Re: LDAP CDE/dtlogin problem
hosts: ldap files dns
It will try to resolve ldap,/etc/hosts then /etc/resolv.conf files.
Resolvation of hosts are good to start with dns and files then others.
Default recommendation from LDAP product is as /etc/nsswitch.ldap file as,
hosts: dns [NOTFOUND=return] files ldap
But there is some problem will be faced on dns [NOTFOUND=return]. So it is to good to keep as,
hosts: dns files ldap
It will do now.
check hostname resolvation as,
nsquery hosts
then check now,
nsquery hosts
You will feel the change. I am also using the ldap / pam authentication,
Check it and make the appropriate change on /etc/nsswitch.conf file
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 05:38 PM
08-24-2004 05:38 PM
Re: LDAP CDE/dtlogin problem
Also in session management section you seem to be missing libpam_unix.so.1 line.
OTHER session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
I've included full pam.conf example below.
#
# Authentication management
#
login auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
su auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
su auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
dtlogin auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtlogin auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
dtaction auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtaction auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
ftp auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
ftp auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
OTHER auth sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER auth required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
#
# Account management
#
login account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login account required /usr/lib/security/$ISA/libpam_ldap.so.1
su account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
su account required /usr/lib/security/$ISA/libpam_ldap.so.1
dtlogin account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtlogin account required /usr/lib/security/$ISA/libpam_ldap.so.1
dtaction account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtaction account required /usr/lib/security/$ISA/libpam_ldap.so.1
ftp account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
ftp account required /usr/lib/security/$ISA/libpam_ldap.so.1
OTHER account sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER account required /usr/lib/security/$ISA/libpam_ldap.so.1
#
# Session management
#
login session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login session required /usr/lib/security/$ISA/libpam_ldap.so.1
dtlogin session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtlogin session required /usr/lib/security/$ISA/libpam_ldap.so.1
dtaction session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtaction session required /usr/lib/security/$ISA/libpam_ldap.so.1
OTHER session sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER session required /usr/lib/security/$ISA/libpam_ldap.so.1
#
# Password management
#
login password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
login password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
passwd password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
passwd password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
dtlogin password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtlogin password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
dtaction password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
dtaction password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
OTHER password sufficient /usr/lib/security/$ISA/libpam_unix.so.1
OTHER password required /usr/lib/security/$ISA/libpam_ldap.so.1 try_first_pass
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:36 AM
08-25-2004 02:36 AM
Re: LDAP CDE/dtlogin problem
I change the nsswitch.conf and pam.conf,
still no luck.
now the error msg become
Aug 25 10:29:41 syslog: unix pam_sm_authenticate(dtlogin waypin), flags = 0
Aug 25 10:29:41 syslog: perform_passwd_aging_check: 12621 12655 -1 -1
Aug 25 10:29:41 syslog: pam_acct_mgmt: error Get new authentication token
Aug 25 10:29:41 syslog: pam_acct_mgmt: error No account present for user
BTW, I created a file link in
/usr/lib/security/
from libpam_ldap.so.1 to libpam_ldap.1
-r-xr-xr-x 1 root sys 346736 Dec 15 2003 libpam_ldap.1
lrwxrwxrwx 1 root sys 15 Aug 25 10:29 libpam_ldap.so.1 -> ./libpam_ldap.1
Because the log conplains that
syslog: load_modules: can not open module /usr/lib/security/libpam_ldap.so.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:34 AM
08-25-2004 03:34 AM
Re: LDAP CDE/dtlogin problem
Thanks a bunch!
Aug 25 11:34:22 hp-dual2 syslog: unix pam_sm_authenticate(dtlogin weiping), flag
s = 0
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: -1 12655
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: flags 0x0
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: 12621 -1 -1
Aug 25 11:34:22 hp-dual2 syslog: perform_passwd_aging_check: 12621 12655 -1 -1
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: 10 0 weiping
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: error 10
Aug 25 11:34:22 hp-dual2 syslog: pam_sm_acct_mgmt: exiting, error 10
Aug 25 11:34:22 hp-dual2 syslog: pam_acct_mgmt: error Get new authentication tok
en
Aug 25 11:34:22 hp-dual2 syslog: PAM_LDAP Entering pam_sm_acct_mgmt... flags (0
)
Aug 25 11:34:22 hp-dual2 syslog: PAM_LDAP Entering new fix
Aug 25 11:34:22 hp-dual2 syslog: pam_acct_mgmt: error No account present for use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 10:57 AM
08-25-2004 10:57 AM
Re: LDAP CDE/dtlogin problem
/usr/contrib/bin/nsquery passwd
return the users entry? Is this user defined in the local passwd/shadow password file as well as LDAP (looks like it is from the syslogs)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 01:50 PM
08-25-2004 01:50 PM
Re: LDAP CDE/dtlogin problem
Yes, I did set up LDAP client.
nsquery ldap do have entries return.
LDAP users can telnet in but cannot dtlogin in.
# /usr/contrib/bin/nsquery passwd weiping ldap
Using "ldap" for the passwd policy.
Searching ldap for weiping
User name: weiping
User Id: 5556
Group Id: 15
Gecos:
Home Directory: /home/weiping
Shell: /usr/bin/tcsh
Switch configuration: Terminates Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:13 PM
08-25-2004 02:13 PM
Re: LDAP CDE/dtlogin problem
/sbin/init.d/dtlogin.rc stop
/sbin/init.d/dtlogin.rc start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 03:39 AM
08-26-2004 03:39 AM
Re: LDAP CDE/dtlogin problem
The problem is still there.
Aug 26 11:37:59 hp-dual2 syslog: unix pam_sm_authenticate(dtlogin weiping), flags = 0
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: -1 12656
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: flags 0x0
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: 12621 -1 -1
Aug 26 11:37:59 hp-dual2 syslog: perform_passwd_aging_check: 12621 12656 -1 -1
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: 10 0 weiping
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: error 10
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: exiting, error 10
Aug 26 11:37:59 hp-dual2 syslog: pam_acct_mgmt: error Get new authentication token
Aug 26 11:37:59 hp-dual2 syslog: PAM_LDAP Entering pam_sm_acct_mgmt... flags (0)
Aug 26 11:37:59 hp-dual2 syslog: PAM_LDAP Entering new fix
Aug 26 11:37:59 hp-dual2 syslog: pam_acct_mgmt: error No account present for user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 03:44 AM
08-26-2004 03:44 AM
Re: LDAP CDE/dtlogin problem
Does this problem happen for all users, or just the "weiping" user?
Also, what kind of shell is /usr/bin/tcsh? I don't have that shell on my 11.23 system. Just out of curiosity, have you tried using a different shell, like /usr/bin/ksh or /usr/bin/csh or /usr/bin/sh to see if this is a shell-related problem? Do you have an /etc/shells file with this non-standard shell in it?
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 06:09 AM
08-26-2004 06:09 AM
Re: LDAP CDE/dtlogin problem
I did try other users with
csh or ksh.
not working. :(
I also have entried in the /etc/shells.
don't know why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 07:13 AM
08-26-2004 07:13 AM
Re: LDAP CDE/dtlogin problem
Aug 26 11:37:59 hp-dual2 syslog: perform_passwd_aging_check: 12621 12656 -1 -1
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: 10 0 weiping
Aug 26 11:37:59 hp-dual2 syslog: pam_sm_acct_mgmt: error 10
This is logged by the pam_unix account management module, so if the user is just in ldap they should not go through this module.
Is pam_unix required for dtlogin?
What's the output of
grep ^dtlogin /etc/pam.conf
Is the dtlogin pam configuration different then others, say login:
grep ^login /etc/pam.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 09:48 AM
09-02-2004 09:48 AM
Re: LDAP CDE/dtlogin problem
According to HP technical support:
just add the following two lines to your /etc/opt/ldapux/ldapux_profile.ldif file and run /opt/ldapux/config/create_profile_cache and then restart ldapclientd daemon.
attributemap: passwd:userpassword=*NULL*
attributemap: shadow:userpassword=*NULL*
Thanks a lot for your replies!