Bug 4440 - net sam provision fails to create administrator user
Summary: net sam provision fails to create administrator user
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.24
Hardware: Other All
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-03-08 17:03 UTC by rtcg
Modified: 2007-03-10 09:12 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description rtcg 2007-03-08 17:03:55 UTC
Possible cause:  'net sam provision' fails to update the domusers_gid  variable when it find the domain admin group.  Upon attempting to create the Administrator user, a check of the domadmins_gid value will always fail thus aborting the creation of the Administrator account.
     if (domadmins_gid == -1) {
                        d_fprintf(stderr, "Can't create Administrtor user, Domain Admins group not available!\n");
                        goto done;

Also:  there is a speling errer in administrtor :)

Steps to reproduce:

 *Create a freshly populated ldap database per the ldapsam:editposix instructions 
 *set the ldap admin password
 *perform a 'net sam provision'
 *remove the dn=Administrator,ou=users,dc=samba,dc=org  account
 *re-run net sam provision.

NOTE:  The same issue may occur with the Guest user as it appears that the domusers_gid variable will also always be set at -1.
Comment 1 Simo Sorce 2007-03-10 09:12:48 UTC
Richard confirmed the bug is fixed
Committed patch to 3_0 and 3_0_25