1834665 Members
2534 Online
110069 Solutions
New Discussion

ldapux problem

 
mango_1
Frequent Advisor

ldapux problem

hello all! Ive been trying to set up ldapux and I'm having trouble when I issued the nsquery passwd ldap
and I get the error this name service is currently unavailable. I have set up the /etc/nsswitch.conf and I also have setup my ldap server with the proxyagent profile. Was wondering why I couldn't use the entries in the ldap server?

thanks a lot! any help will really be appreciated.

melissa
2 REPLIES 2
Jairo Campana
Trusted Contributor

Re: ldapux problem

On HP-UX 11.0 and up, use nsquery instead of nslookup to look up
hosts, passwd, and group entries. nsquery uses the actual gethostbyXXX
getpwdXXX and getgrXXX interfaces, whereas nslookup does not.

Here are some example of the usage of nsquery:


# nsquery hosts jbox

Using "files [NOTFOUND=continue] dns" for the hosts policy.

Searching /etc/hosts for jbox
Hostname: jbox
Aliases:
Address: 10.10.10.204
Switch configuration: Terminates Search

# nsquery hosts 127.0.0.1

Using "files [NOTFOUND=continue] dns" for the hosts policy.

Searching /etc/hosts for 127.0.0.1
Hostname: localhost
Aliases: loopback
Address: 127.0.0.1
Switch configuration: Terminates Search

# nsquery hosts hp.com

Using "files [NOTFOUND=continue] dns" for the hosts policy.

Searching /etc/hosts for hp.com
hp.com was NOTFOUND

Switch configuration: Allows fallback

Searching dns for hp.com
Hostname: hp.com
Aliases:
Address: 192.6.118.44 192.6.118.97 192.151.52.187 192.151.52.217 192.151.53.86 1
92.6.118.128 192.6.234.8 192.6.234.9 192.6.234.10
Switch configuration: Terminates Search


# nsquery passwd hackley

Using "files" for the passwd policy.

Searching /etc/passwd for hackley
User name: hackley
User Id: 101
Group Id: 20
Gecos:
Home Directory: /home/hackley
Shell: /sbin/sh

Switch configuration: Terminates Search


# nsquery passwd 101

Using "files" for the passwd policy.

Searching /etc/passwd for 101
User name: hackley
User Id: 101
Group Id: 20
Gecos:
Home Directory: /home/hackley
Shell: /sbin/sh

Switch configuration: Terminates Search

# nsquery group users

Using "files " for the group policy.

Searching /etc/group for users
Group name: users
Group Id: 20
Group membership: root wtec djs hackley
Switch configuration: Terminates Search
legionx