getent not working, solaris 10 only


 
Thread Tools Search this Thread
Operating Systems Solaris getent not working, solaris 10 only
# 1  
Old 11-14-2011
getent not working, solaris 10 only

Hello, thanks in advance for any help!

We use LDAP for our unix boxes
When I run getent passwd on solaris 10, it only returns some of the ldap entries, not all. Aprox 300 of 4000. When i run the same command on linux or solaris 9, it comes back correct.

my nsswitch file is good.

I ran a truss, and you can clearly see in solaris 9, where it queries ldap. But, in solaris 10 truss output, i'm having a hard time seeing where it queried ldap at all, i dont see it!

And ideas why it would only return part of the ldap entries?
# 2  
Old 11-14-2011
What about the directory server logs ?
# 3  
Old 11-14-2011
good idea,

I have access to the logs, but i dont see anything happening, i did a tail -f [accesslog] while doing a getent passwd, i dont see anything happeneing.
Where would executing a getent command get logged in the DS logs, it may not be set for that verbose level...?
# 4  
Old 11-14-2011
Knowing what DS server it is might help. However, having it not logging queries in its access log would seem to me a very useless configuration.

What says
Code:
ldaplist passwd

?
# 5  
Old 11-14-2011
Thanks you guys for helping!

It's a sun one dir server, there are basically 3 logs i see, access, errors, and audit.

im tailing the access log, i would think that would register something, but i just did a ldaplist as you suggested while tailing access, i didnt seething in that log.

but,

this issue i have is only with getent passwd, i can use ldaplist, that works good, like it should.
# 6  
Old 11-14-2011
Well, if ldaplist list all entries but the access log shows nothing, perhaps are you looking at the wrong directory server ...

Another explanation would be everything is cached but I'm skeptical about the cache storing all the user's database. To rule that out, you might want to disable temporarily the name service cache (nscd) and see if that improves the replies:
Code:
svcadm disable -t name-service-cache

# 7  
Old 02-10-2012
any special characters in the gecos attribute?

I had the same problem on our Sol10 servers, the "getent passwd" command stopped after 4300 entries (from 12.000 entries). But the getent command on Sol8 and Linux clients still worked well.

I found out, that the reason for this behaviour was in my case a ":" character in the gecos attribute string of one user on the Oracle Directory Server. This is a bug in the LDAP client implementation of Solaris10.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Audit not working on Solaris 10

hi, I enabled bsm modules (/etc/security/bsmconv) and rebooted Solaris 10. But service is going into maintenance state. I rebooted server and I see one error saying "sys/c2audit:audit_kssl() not defined properly". I am not sure, what it is indicating and how it should be fixed. Please suggest, how... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Solaris

Sudo Not working on Solaris 10

Hi All, im a bit new to Solaris 10 iv been working on Redhat and cant seem to get the sudo working on Solaris 10:D Iv installed the below packages via pkgadd command: gcc-4.7.2-sol10-x86-local libiconv-1.14-sol10-x86-local libintl-3.4.0-sol10-x86-local sudo-1.8.13-sol10-x86-local ... (1 Reply)
Discussion started by: SolarisRSA
1 Replies

3. UNIX for Dummies Questions & Answers

Where does id / getent query ?

I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP... (2 Replies)
Discussion started by: MaindotC
2 Replies

4. Shell Programming and Scripting

getent hosts

korn shell script on Solaris getent hosts <hostname> returns IP FQDN But I just want the output to be like this <hostname> IP things I have tried so far getent hosts <hostname> |awk '{print $2,$1}' using awk and substr getent hosts <hostname> |nawk '{print substr($2,1,5)}' ... (1 Reply)
Discussion started by: snoman1
1 Replies

5. Solaris

Solaris 11 GUI is not working

Hello I've installed Solaris 11 on Sparc T4-1, I tried to launch IPS GUI: # packagemanager /usr/lib/python2.6/vendor-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) Unable to initialize gtk could not open... (12 Replies)
Discussion started by: samer.odeh
12 Replies

6. Solaris

FTP not working Solaris 10

Hi All, I have a problem with FTP service on Solaris 10. Whenever I try to FTP to one machine locally (ftp localhost) or from other machine I don't get any response, I see the ftp service on the machine is online and listening to port 21 but ftp is not responding. Also it seems i can't... (16 Replies)
Discussion started by: belal84
16 Replies

7. Solaris

nc command is not working in SOLARIS 10

HI, When I tried to use the nc or netcat command in SOLARIS 10 server, it says bash: nc: command not found Any package needs to be installed for this command to work in SOL 10?: Please someone let me know how to resolve this issue. (1 Reply)
Discussion started by: mgmk.84
1 Replies

8. UNIX for Dummies Questions & Answers

set -o vi not working in Solaris 9

Hi Got 2 solaris boxes - one uses set -o vi happily (put it in .profile) The other reports: -o: bad option(s) Both are solaris 9 and both users have $SHELL set to /bin/ksh Any ideas?? Thanks (4 Replies)
Discussion started by: robbien
4 Replies

9. Solaris

Executable compiled on solaris 10 not working on solaris 9

Hi I compiled an executable on Solaris 10 which creates semaphore ( semget) but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9. the ldd for the executable on two servers is as... (4 Replies)
Discussion started by: ash_bit2k2
4 Replies

10. Solaris

gcc not working on Solaris 10

I have a very simple c++ program like: > cat easy_gcc.cc #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <ctype.h> int debugging = 1; int main() { printf ("This is a... (2 Replies)
Discussion started by: miltony123
2 Replies
Login or Register to Ask a Question