Operating System - HP-UX
1823955 Members
3911 Online
109667 Solutions
New Discussion

NSS LDAP-UX integration with OpenLDAP

 
Stephen Pearson_1
Occasional Advisor

NSS LDAP-UX integration with OpenLDAP

Can't quite seem to get this working.

I've loaded the DUAprofile schema into my openldap server and created a profile for my HPUX clients. After configuring /etc/opt/ldapux/ldapux_client.conf appropriately I can bootstrap my ldapux config with "/opt/ldapux/config -s nss". This part seems to work and I can run pwget or nsquery and see my accounts I created on the LDAP server.

e.g.:

----------------------
> nsquery passwd stephen

Using "files ldap" for the passwd policy.

Searching /etc/passwd for stephen
stephen was NOTFOUND

Switch configuration: Allows fallback

Searching ldap for stephen
User name: stephen
User Id: 1339
Group Id: 15000
Gecos: Test User
Home Directory: /home/stephen
Shell: /bin/sh

Switch configuration: Terminates Search

-------------------------

I've started up the ldapclientd and my /etc/nsswitch.conf has the following entries for passwd and group:

passwd: files ldap
group: files ldap

But here's the problem....

> cd ~stephen
/bin/sh: ~stephen: not found.

> id stephen
Can't find user stephen

I've enabled logging but the only clue so far is:

ldap_common.c:3798:_hp_ldap_common_init(): ldapssl_client_init() failed, result=-1

That's ok, I'm not using SSL (yet).

This works fine for my Linux clients. I've attached a dump of my ldap db in case it's any use.
1 REPLY 1
Stephen Pearson_1
Occasional Advisor

Re: NSS LDAP-UX integration with OpenLDAP

Installed the following patches and rebooted. Problem went away.

PHCO_27064
PHSS_31163
PHCO_28605
PHNE_27796