[Bug 220844] Re: wbinfo fails to enumerate users and groups

Steve Langasek steve.langasek at canonical.com
Sat Aug 16 05:56:01 BST 2008

Thank you for taking the time to report this bug and help to improve

I see a few inconsistencies in the output you've shown.  I don't know if
any of them relate to this bug, but they might, so I point them out.

/etc/hosts: localhost ubuntu ubuntu.domainname localhost ubuntu

This third record is wrong.  The authoritative name (the one in the first column) for must always be localhost.  Assuming you want ubuntu.domainname to be your canonical hostname, this should be: localhost ubuntu.domainname ubuntu

  workgroup = DOMAINNAME
  realm = DOMAINNAME

This must also be wrong, because a realm is a DNS domain name and a
workgroup is a NetBIOS name.  The realm name should therefore have at
least one dot in it, and the workgroup name should have no dots in it,
so these shouldn't be the same.  (I've seen reports from other users who
used the realm name as the workgroup name and they didn't have any
problems as a result of this - but it is incorrect and renders your
system incompatible with some others.)

  netbios name = ubuntu

This is not wrong, but definitely redundant; I recommend not encoding
this here, since that increases the number of places you would need to
change it if your hostname ever changed.

# /etc/init.d/winbind stop
# /etc/init.d/samba restart
# /etc/init.d/winbind start
# net ads join -U Administrator

This looks backwards to me.  Surely you need to restart winbind /after/
you've done your net ads join, so that winbind picks up the domain join

ADS doesn't need to be able to resolve your hostname at all in order to
let you enumerate groups or users, so I think the static vs. dynamic IP
question is a red herring, and the real issue is probably that winbind
was not restarted after the join.

Here is an abridged test showing this behavior:

$ sudo net ads join -U Administrator 
Administrator's password: 
Using short domain name -- UBUNTU-WP
Joined 'DARIO' to realm 'UBUNTU-WP.COM'
$ wbinfo -u
Error looking up domain users
$ sudo /etc/init.d/winbind restart
 * Stopping the Winbind daemon winbind                                   [ OK ] 
 * Starting the Winbind daemon winbind                                   [ OK ] 
$ wbinfo -u

So indeed, wbinfo only works after you've restarted winbind.

I'm therefore closing this bug as invalid; please reopen if you think
this is a mistake.

** Changed in: samba (Ubuntu)
       Status: Incomplete => Invalid

wbinfo fails to enumerate users and groups
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

More information about the Ubuntu-server-bugs mailing list