[Samba] net rpc join -U root error

Adam Williams awilliam at mdah.state.ms.us
Wed Nov 7 18:27:50 GMT 2007

On my server, I have root in LDAP, and am following the Samba3 by
example book, but I'm unable to get it to join the domain.  I'm running
samba 3.0.25b.

[root at gomer samba]# net rpc join -U root%xxxxxxxx

Unable to find a suitable server

[root at gomer samba]# net rpc testjoin -S GOMER -U root%xxxxxxx
Join to 'ADMIN' is OK
[root at gomer samba]# net rpc testjoin -D DOMAIN -U root%xxxxxxx
Unable to find a suitable server
Join to domain 'ADMIN' is not valid

I google searched for the error, but didn't find a solution.  Any ideas?


  unix charset = LOCALE
  workgroup = ADMIN
  netbios name = GOMER
  server string = Samba Server %v on gomer
  interfaces = eth0, lo
  bind interfaces only = Yes
  passdb backend = ldapsam:ldap://gomer.mdah.state.ms.us
  enable privileges = Yes
  username map = /etc/samba/smbusers
  log level = 5
  syslog = 0
  log file = /var/log/samba/%m
  max log size = 50
  name resolve order = wins bcast hosts
  time server = Yes
  printcap name = CUPS
  show add printer wizard = no
  add user script = /usr/sbin/smbldap-useradd -a -m "%u"
  delete user script = /usr/sbin/smbldap-userdel "%u"
  add group script = /usr/sbin/smbldap-groupadd -p "%g"
  delete group script = /usr/sbin/smbldap-groupdel "%g"
  add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
  delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
  set primary group script = /usr/sbin/smbldap-groupmod -g "%g" "%u"
  add machine script = /usr/sbin/smbldap-useradd -w "%u"
  logon script = scripts\logon.bat
  logon path = \\%L\profiles\%U
  logon drive = X:
  domain logons = Yes
  preferred master = Yes
  wins support = Yes
  ldap suffix = dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
  ldap machine suffix = ou=People
  ldap user suffix = ou=People
  ldap group suffix = ou=Groups
  ldap idmap suffix = ou=Idmap
  ldap admin dn = cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
  idmap backend = ldap:ldap://gomer.mdah.state.ms.us
  idmap uid = 10000 - 20000
  idmap gid = 10000 - 20000
  map acl inherit = Yes
  printing = cups
  printer admin = root, awilliam

  comment = Home Directories
  valid users = %S
  read only = no
  browseable = No

  comment = Accounting Files
  path = /data/accounts
  read only = No

  comment = network logon service
  path = /var/lib/samba/netlogon
  guest ok = Yes
  locking = No

  comment = Profile Share
  path = /var/lib/samba/profiles
  read only = No
  profile acls = Yes

  comment = Printer Drivers
  path = /var/lib/samba/drivers
  browseable = yes
  guest ok = no
  read only = yes
  write list = root, awilliam

ldapsearch -D 'cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' -b
"uid=root,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w xxxxxxx -x
# extended LDIF
# LDAPv3
# base <uid=root,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us> with
scope subtree
# filter: (objectclass=*)
# requesting: ALL

# root, People, gomer.mdah.state.ms.us
dn: uid=root,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
uid: root
cn: root
sn: root
mail: root at mdah.state.ms.us
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword:: xxxxxxxxxxxxxxxxxxx
shadowLastChange: 13704
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /root
gecos: root

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

[root at gomer samba]# ps ax|grep winbind
6511 pts/1    S+     0:00 grep winbind
29280 ?        Ss     0:00 winbindd
29282 ?        S      0:00 winbindd
29285 ?        S      0:00 winbindd
29286 ?        S      0:00 winbindd
[root at gomer samba]# cat /etc/nsswitch.conf |grep wins
hosts:      files dns wins

More information about the samba mailing list