Samba with ldap failing to create domain users, admins etc

rumbi

Distinguished
Sep 22, 2011
3
0
18,510
Hello,
i have configured samba to authenticate with an LDAP backend everything works fine including testing the configuration files until I start the net sam provision.
Below is the error message I get

lib/smbldap_util.c:310(smbldap_search_domain_info)
smbldap_search_domain_info: Adding domain info for XXXXX failed with NT_STATUS_UNSUCCESSFUL
Adding the Domain Users group.
Unable to allocate a new gid to create Domain Users group!
Checking for Domain Admins group.
Adding the Domain Admins group.
Unable to allocate a new gid to create Domain Admins group!
Check for Administrator account.
Adding the Administrator user.
Can't create Administrator user, Domain Admins group not available!

I have checked the logs and I can't make sense of them (I am quie green when it comes to LDAP and Samba). I am following the instructions from the redhat documentation for rhel6

Below is the /var/log/messages

winbindd/idmap.c:589(idmap_alloc_init)
Oct 10 08:53:04 xxxxx winbindd[18314]: ERROR: Initialization failed for alloc backend, deferred!
Oct 10 08:53:04 xxxxx winbindd[18314]: [2011/10/10 08:53:04.768122, 0] winbindd/idmap.c:201(smb_register_idmap_alloc)
Oct 10 08:53:04 xxxxx winbindd[18314]: idmap_alloc module ldap already registered!
Oct 10 08:53:04 xxxxx winbindd[18314]: [2011/10/10 08:53:04.768198, 0] winbindd/idmap.c:201(smb_register_idmap_alloc)
Oct 10 08:53:04 xxxxx winbindd[18314]: idmap_alloc module tdb already registered!
Oct 10 08:53:04 xxxxx winbindd[18314]: [2011/10/10 08:53:04.768264, 0] winbindd/idmap.c:149(smb_register_idmap)
Oct 10 08:53:04 xxxxx winbindd[18314]: Idmap module passdb already registered!
Oct 10 08:53:04 xxxxx winbindd[18314]: [2011/10/10 08:53:04.768328, 0] winbindd/idmap.c:149(smb_register_idmap)
Oct 10 08:53:04 xxxxx winbindd[18314]: Idmap module nss already registered!
Oct 10 08:53:04 xxxxx winbindd[18314]: [2011/10/10 08:53:04.769683, 0] winbindd/idmap.c:589(idmap_alloc_init)
Oct 10 08:53:04 xxxxx winbindd[18314]: ERROR: Initialization failed for alloc