HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LDAP-UX strange behaviour
Operating System - HP-UX
1831323
Members
2960
Online
110023
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-30-2006 02:15 PM
03-30-2006 02:15 PM
LDAP-UX strange behaviour
Hi all,
An update of where I am at:
I have RedHat directory server 7.1 installed on a HP-UX 11.11 server (called server1)(which is not trusted systems). I created a profile on the ldap server and configured ldapux. I have run the migration scripts on that host and imported the resulting ldif files into the directory server using "ldapmodify". I setup /etc/nsswitch.conf and /etc/pam.conf. Then I removed the imported entries from /etc/passwd (NB I didn't import important system users or grooups). What I found was that I was able to log into the system, and all my user files were fine. Even after a reboot, it worked fine.
I then removed the added entries so I had a fresh database again. I then did exactly what I had done above, except it was on an 11.23 server (which wasn't running trusted systems either) and the ldap server was still on 11.11.
What I found was that configuring ldapux was fine, it created the profile fine. I ran the migrations scripts and attempted to import the generated ldif files using ldapmodify, except this time I got the following error message:
[server2]:/etc # /opt/ldapux/bin/ldapmodify -a -c -e /tmp/rejects -f /tmp/server2_passwd.ldif -D uid=admin,ou=.....
ldap_simple_bind: Can't connect to the LDAP server - Connection refused
So I can't run ldapmodify on server2 (11.23) coz it can't connect to the ldap server. Why would that be? NB, I am using the "simple" option in the ldapux setup script.
Anyway, what I could do was copy the ldif files to server1 (11.11) and run the ldapmodify command there and that worked fine. So I now have an LDAP directory full of the user accounts that used to be on server2.
I checked and server2 can indeed read the ldap directory, because when I delete the users out of /etc/passwd, the files ownerships of those users still finds the correct username for that uid. Also, nsquery works when I run: nsquery passwd.telnet
However, I am unable to log in as a user on the system.
eg telnet says:
login: tmpusrac
Login incorrect
login:
And so it won't let me log in anymore.
By the way, I have setup nsswitch.conf correctly, and used the /etc/pam.ldap file and copied that over the top of /etc/pam.conf. I have done this on both server1 and server2. So they both should work, but only server1 does. Why is this? Remembering that server1 is also hosting the ldap server, but theoretically that shouldn't make any difference.
Can anyone tell me what's going on here, or any ideas?
Thanks all.
- Andy
An update of where I am at:
I have RedHat directory server 7.1 installed on a HP-UX 11.11 server (called server1)(which is not trusted systems). I created a profile on the ldap server and configured ldapux. I have run the migration scripts on that host and imported the resulting ldif files into the directory server using "ldapmodify". I setup /etc/nsswitch.conf and /etc/pam.conf. Then I removed the imported entries from /etc/passwd (NB I didn't import important system users or grooups). What I found was that I was able to log into the system, and all my user files were fine. Even after a reboot, it worked fine.
I then removed the added entries so I had a fresh database again. I then did exactly what I had done above, except it was on an 11.23 server (which wasn't running trusted systems either) and the ldap server was still on 11.11.
What I found was that configuring ldapux was fine, it created the profile fine. I ran the migrations scripts and attempted to import the generated ldif files using ldapmodify, except this time I got the following error message:
[server2]:/etc # /opt/ldapux/bin/ldapmodify -a -c -e /tmp/rejects -f /tmp/server2_passwd.ldif -D uid=admin,ou=.....
ldap_simple_bind: Can't connect to the LDAP server - Connection refused
So I can't run ldapmodify on server2 (11.23) coz it can't connect to the ldap server. Why would that be? NB, I am using the "simple" option in the ldapux setup script.
Anyway, what I could do was copy the ldif files to server1 (11.11) and run the ldapmodify command there and that worked fine. So I now have an LDAP directory full of the user accounts that used to be on server2.
I checked and server2 can indeed read the ldap directory, because when I delete the users out of /etc/passwd, the files ownerships of those users still finds the correct username for that uid. Also, nsquery works when I run: nsquery passwd
However, I am unable to log in as a user on the system.
eg telnet says:
login: tmpusrac
Login incorrect
login:
And so it won't let me log in anymore.
By the way, I have setup nsswitch.conf correctly, and used the /etc/pam.ldap file and copied that over the top of /etc/pam.conf. I have done this on both server1 and server2. So they both should work, but only server1 does. Why is this? Remembering that server1 is also hosting the ldap server, but theoretically that shouldn't make any difference.
Can anyone tell me what's going on here, or any ideas?
Thanks all.
- Andy
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP