[Samba] cygwin 'QueryUserInfo' fails dueto samba error. Wazup?

Linda Walsh samba at tlinx.org
Mon Jun 27 20:05:13 MDT 2011

I made progress in tracking down a problem on cygwin that's been bothering
me for a while since Win7 and domain.

when I do:
> mkpasswd -D
mkpasswd (434): [31] A device attached to the system is not functioning.

A network trace shows that it's trying to get the home dir
information from my main user. Wwhen it queries the info 
Samba returns STATUS UNSUCCESSFUL (indicated in network status of trace).

in the log, I see :

[2011/06/27 17:41:16.099526,  3] smbd/service.c:845(make_connection_snum)
  Connect path is '/var/tmp' for service [IPC$]
[2011/06/27 17:41:16.099526,  3] smbd/vfs.c:102(vfs_init_default)
  Initialising default vfs hooks
[2011/06/27 17:41:16.099526,  3] smbd/vfs.c:128(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2011/06/27 17:41:16.099526,  3] smbd/service.c:1095(make_connection_snum)
  athenae ( connect to service IPC$ initially as user lindaw (uid=5013, gid=201) (pid 18720)
[2011/06/27 17:41:16.099526,  3] smbd/msdfs.c:870(get_referred_path)
  get_referred_path: |home| in dfs path \Bliss\home is not a dfs root.

Um...what does that mean?

I'm trying to check what wbinfo thinks -- and that might hold a clue to
the problem, as it's got it's own confusion.  It lists the expected users
and groups (with no Domain prefix in front of them -- this is right? right, 
for running on the DC?), it also shows:
# wbinfo -p
  Ping to winbindd succeeded
# wbinfo --all-domains        
# wbinfo --own-domain         
# wbinfo --trusted-domains
# wbinfo --online-status BLISS    
  BUILTIN : online
  BLISS : online
# wbinfo -P
  checking the NETLOGON dc connection succeeded
# wbinfo --getdcname BLISS    
  Could not get dc name for BLISS
    ^ --This is the first indication of a problem....also when I try
wbinfo --dsgetdcname....   it just goes off and thinks about it.
(don't know if it ever would come back...waited about 30 seconds,
but gave up)

I can map a uid to a sid:

# wbinfo --uid-to-sid=5013

but I can't ask about a user (w/ or w/o the domainname in front of it):

# wbinfo -i [domain\\]username
  failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND

Ideals?  about any of these?

Conceivably all my bases are belong to idiot, but, 'most things work'...

I've been trying some changes, but have made things worse (and then
better again)...and now am a bit better than when I started, but am
stumped on how to proceed...



More information about the samba mailing list