Operating System - HP-UX
1826382 Members
4216 Online
109692 Solutions
New Discussion

Re: re: ldap and kerberos, pwget returns nothing

 
Gurcharan Sahota_2
Frequent Advisor

re: ldap and kerberos, pwget returns nothing

I have configured a HP-UX server to be a LDAP client.

I have setup a dummy user on a W2003K AD server.

But when I run pwget -n {username} it returns nothing.

Prior to configuring kerberos, the pwget was returning the login credentials.

confused by this...

any ideas?
4 REPLIES 4
RAC_1
Honored Contributor

Re: re: ldap and kerberos, pwget returns nothing

How does your /etc/nsswitch.conf file look like?? Does it spcifity for ldap lookup??

Also whatt does nsquery passwd "user_name" returns??

Anil
There is no substitute to HARDWORK
Gurcharan Sahota_2
Frequent Advisor

Re: re: ldap and kerberos, pwget returns nothing

here's the output from the nsquery command-

# ./nsquery passwd test

Using "files ldap" for the passwd policy.

Searching /etc/passwd for test
test was NOTFOUND

Switch configuration: Allows fallback

Searching ldap for test
This Name Service is currently unavailable

Switch configuration: Allows fallback

All name services have been searched


and the nsswitch.conf looks like-

# /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

any ideas?
Gurcharan Sahota_2
Frequent Advisor

Re: re: ldap and kerberos, pwget returns nothing

just to add,

if I query a hp-ux login setup (as opposed to one setup on AD server) the output is as follows;

# ./nsquery passwd gsa

Using "files ldap" for the passwd policy.

Searching /etc/passwd for gsa
User name: gsa
User Id: 1591
Group Id: 203
Gecos: Gurcharan Sahota,Unix
Home Directory: /home/gsa
Shell: /usr/bin/ksh

Switch configuration: Terminates Search
Jens Skoglund
New Member

Re: re: ldap and kerberos, pwget returns nothing

Hi!

I have the exact same problem as you did, cant get any connection to the AD server,

I just wounder if you manage to solve the problem? and in that case how..!


The messege a get when I try:

#/usr/contrib/bin/nsquery passwd edward ldap

Using "ldap" for the passwd policy.

Searching ldap for edward
This Name Service is currently unavailable

Switch configuration: Allows fallback

All name services have been searched


I have checked configs over and over..
:)

I hope you can help me!