This is Interesting: Free IT Magazines  
Home > Archive > Samba > June 2004 > [Samba] Inconsistant winbind and getent results





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Samba] Inconsistant winbind and getent results
Norman Zhang

2004-06-26, 12:30 pm

Hi,

# wbinfo -t
checking the trust secret via RPC calls succeeded

# wbinfo -u | grep nzhang
nzhang

# wbinfo -a nzhang%testing123
plaintext password authentication succeeded
challenge/response password authentication succeeded

# getent passwd nzhang

The last command displays nothing. Why?

Regards,
Norman

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Marcel de Riedmaten

2004-06-26, 1:19 pm

Le mer 23/06/2004 à 00:53, Norman Zhang a écrit :

Hi

>
> # getent passwd nzhang
>
> The last command displays nothing. Why?
>


Last time i got that i had 2 users with the same numeric uid (this is
counting local users) or, i am not quite sure, 2 users or group with the
same SID. To much playing ! So i would double check stuff like that.

Cheers

--
Marcel de Riedmatten




--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Norman Zhang

2004-06-28, 7:27 pm

Marcel de Riedmaten wrote:
> Le mer 23/06/2004 à 00:53, Norman Zhang a écrit :
>
> Last time i got that i had 2 users with the same numeric uid (this is
> counting local users) or, i am not quite sure, 2 users or group with the
> same SID. To much playing ! So i would double check stuff like that.


I don't have a local user nzhang on my Linux box. I added winbind enum
users/groups, but testparm seems to ignore them. Below is my conf file,
could you see if I'm doing something stupid?

Regards,
Norman

# wbinfo -u | grep nzhang
nzhang
# grep nzhang /etc/passwd
# grep nzhang /etc/group

[global]
workgroup = MYDOMAIN
netbios name = Proxy
server string = Samba Server %v
security = DOMAIN
encrypt passwords = Yes
password server = BAKSERVER
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# character set = ISO8859-15
os level = 18
local master = No
preferred master = No
domain master = No
dns proxy = No
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind separator = /
template homedir = /home/%D/%U
template shell = /bin/bash
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Marcel de Riedmatten

2004-06-29, 8:41 am

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Norman Zhang

2004-06-29, 5:50 pm

Marcel de Riedmatten wrote:
> Le lun 28/06/2004 à 19:52, Norman Zhang a écrit :
>
> I said numeric uid, not uid. This is the number int the third column of
> a passwd entry. You have idmap in your config therefore your are running
> samba 3. What is your domaine controler ? By the way your config look
> good.
>
> An other way to look at the problem is to put
>
> log level = 3 or 5
>
> and to look at the winbind log after you have done the getent.
> There surely will be some interesting message.


Thanks. I don't have the duplicate numeric uid for nzhang. I checked
wbinfo -u | user_x for users before and after nzhang. It seems nzhang is
skipped. Below is a more verbose log. Do you see what the problem is?

Regards,
Norman

[2004/06/29 12:30:26, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
[ 1759]: request interface version
[2004/06/29 12:30:26, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
[ 1759]: request location of privileged pipe
[2004/06/29 12:30:26, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(124)
[ 1759]: getpwnam nzhang
[2004/06/29 12:30:26, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(50)
error getting user id for sid
S-1-5-21-1870222080-545617551-923749875-1043

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2010 webservertalk.com