- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LDAP-UX: First ldap login takes about 5 minut...
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
12-09-2009 07:33 AM
12-09-2009 07:33 AM
Solved! Go to Solution.
- Tags:
- LDAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 08:38 AM
12-09-2009 08:38 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
I had such same troubles some days ago on my recent HP-UX 11.31 box...
For me it has to do with the ldapclientd daemon which was in DEBUG mode... (Disabling it solve me problem)
1. Perhaps check this on you server:
http://www.docs.hp.com/en/J4269-90041/ch04s14.html
2. Are you on the last Version of LDAP-UX : 4.20?
(swlist -l product |grep LDAP-UX)
3. You can try to disable the "passwd cache" when starting ldapclientd: /opt/ldapux/bin/ldapclientd -D passwd
By careful that this is one "one-shot" action... to modify it definitely You must change the "rc-file" /sbin/init.d/ldapclientd.rc...
The last thing I can suggest is to tune the ldapclientd process through tusc.
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 11:50 AM
12-09-2009 11:50 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 11:52 AM
12-09-2009 11:52 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Anyway, I was in INFO mode...
I think it might have to do with my pam.conf but I am not sure.
I will give you 10 points for your help once I can solve this.
Thanks again...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 05:41 AM
12-10-2009 05:41 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Anybody?????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 08:29 AM
12-10-2009 08:29 AM
SolutionWhat does the output look like once you have logged in once? That's neat that it sits for 4 minutes doing nothing form 14:35 to 14:39.
Can you send the output of an sshd -ddd on the server side and ssh -vvv on the client side as well?
You don't happen to have the pwgrd daemon off do you? (password & group caching daemon.) It's not technically required, but works in conjunction with the ldapclientd caching.
Just out of curiosity, your primary ldap server is available, right? You can have up to three ldap servers listed in the ldapuxprofile, but what they don't tell you is that EVERY query goes to the 1st, then the 2nd, then the 3rd, regardless of whether the 1st or 2nd were down on the last request. If you used DNS names, it will also attempt to resolve each one, with a 10 second timeout per DNS request. So, you can see that if your DNS is down, and/or your LDAP server is down, or worse, your primary LDAP server is your DNS server (been there), you could end up with VERY long login times.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 10:00 AM
12-10-2009 10:00 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
So pwgrd is running, and we only have the one DC listed in the profile.
I will try and get that sshd -ddd and ssh -ww info for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 10:25 AM
12-10-2009 10:25 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 10:27 AM
12-10-2009 10:27 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 10:27 AM
12-10-2009 10:27 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
I think the recommendation for debug output from sshd is a good idea, to see where it thinks things are hanging up. If it's in PAM, then you can turn on PAM debugging using:
1. Configure syslog:
save a backup copy of syslog.conf, then
add this line to /etc/syslog.conf
*.debug /var/adm/syslog/syslog.log
note: this requires tab characters like the other entries
2. Turn on debug in pam module(s):
save a backup copy of /etc/pam.conf, then
add "debug" to the end of each entry in /etc/pam.conf; e.g
sshd account required /usr/lib/security/libpam_unix.1 debug
(actually, you could do just the lines you care about)
3. turn on libpam debug: touch /etc/pam_debug
4. start syslog daemon: /sbin/init.d/syslogd start
5. do tests to generate pam syslog debug info in
/var/adm/syslog/syslog.log
6. cleanup
/sbin/init.d/syslogd stop
rm /etc/pam_debug
restore /etc/pam.conf and /etc/syslog.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 05:37 AM
12-14-2009 05:37 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Were you able to do an ssh -vvv from the client perspective?
Do you have glance (OV Perf tools) installed, can you pull it up, find the process and select it (g to list all processes, s to select one in particular) It should be able to tell you what the process state is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 05:41 AM
12-14-2009 05:41 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 06:05 AM
12-14-2009 06:05 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
It happens with or without a home directory. I tried it both ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 08:34 AM
12-14-2009 08:34 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
I just meant that it seemed odd not to have a home dir. From a security perspective, it is highly recommended to have a home dir for each user, and disallow logins to users that it does not exist.
This type of thing doesn't tend to slow logins, it tends to prevent them entirely.
I think the ssh -vvv from the client and, as recommended by Bob, pam debug logging on the ssh items is the next step.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 11:30 AM
12-14-2009 11:30 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
These are only test users, so we don't bother with the home directory because once it logs in the once, then it is fine. So another account has to be created for further testing. I will continue with the recommendations. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2009 07:56 AM
12-15-2009 07:56 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Does a reboot, or restart of sshd, ldapclientd, pwgrd or anything else seem to have an impact?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2009 07:57 AM
12-15-2009 07:57 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2009 08:49 AM
12-15-2009 08:49 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
I have now reached the conclusion that there is no problem with this system.
There probably is a patch for the server that will make this perform better, but a lot of things get checked for first time login and it might be best just to ignore the problem or look for an update for the LDAP server.
Do the basics such as make sure network traffic is flowing freely.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2009 04:58 AM
12-16-2009 04:58 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Anyway, the AD folks watched it come in from their end and it came in for a second. So it seems to be on the HP end.
I know an initial login will take a little more time but 5 minutes is unacceptable. If there were network problems, they would show in subsequent logins. There are no network problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2009 05:18 AM
12-16-2009 05:18 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
No problem. So we need the PAM debug log (just add " debug" to the end of every pam line in your /etc/pam.conf, in /etc/syslog.conf, add a *.debug entry to an output file (don't forget that whitespace must be TAB), touch the file, then kill -HUP your syslogd.
And we also need the ssh -vvv from the client.
Is the response the same for other login methods other than ssh? (can you temporarily turn on telnet for example?), does restarting pwgrd, ldapclientd, sshd, or rebooting the host have an impact on previously working users?
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2009 07:38 AM
12-16-2009 07:38 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2009 08:23 AM
12-16-2009 08:23 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
The only thing that is standing out is that your hptest6 account password is expired:
Dec 16 10:19:07 server sshd[22288]: pam_sm_acct_mgmt: exiting, error 17
Dec 16 10:19:07 server sshd[22288]: pam_acct_mgmt: error User account has expired
Dec 16 10:20:29 server sshd[22295]: warn_user_passwd_will_expire: -1 -1 14594 -1
Then it sits for 3 minutes on a permission denied error:
Dec 16 10:20:32 server sshd[22295]: pam_setcred: error Permission denied
before moving on to try to fail again.
Get your account admins to leave the account without a password that needs to be changed on first login, or log in on a windows box, change the password and log in again.
You could also try getting them to set the acount with the password to never expire, and not change the password on next logon.
Don't put host or time limits on the account either.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2009 09:27 AM
12-16-2009 09:27 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2009 07:37 AM
12-29-2009 07:37 AM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2010 07:46 PM
01-01-2010 07:46 PM
Re: LDAP-UX: First ldap login takes about 5 minutes, others are fine
Don