[Samba] UNIX accounts can create

Ryan Steele steele at agora-net.com
Thu Jun 15 15:33:25 GMT 2006


Not totally sure...sounds like a problem with smbldap not having the 
proper SID.  Do a 'net getlocalsid' and put what it returns in 
smbldap.conf on the line where you specify the SID for the domain.  It's 
the firs thing under General Configuration.  See if that helps.

Best,
Ryan

IT wrote:
>
> Thanks ryan...
>
> First i use smbldap-useradd with "-a " flag in the smb.conf but the 
> vampire process create the ldap porcion but cant create posix 
> accounts. in the vampire process say "Cant create posix account info".
>
> Triying to resolve this problem. i see that populate
> and smbldap-useradd either create the posix part.
>
> with -a flag say:
>
> /usr/local/sbin/smbldap-useradd -a testuser
> Cannot confirm uidNumber 1008 is free: checking for the next one
> Can't call method "get_value" on an undefined value at 
> /usr/local/sbin/smbldap-userad line 197.
>
> viewing te code near line 197
>
> 189  my $group_entry;
>    190  my $userGroupSID;
>    191  my $userRid;
>    192  my $user_sid;
>    193  if (defined $Options{'a'} or defined $Options{'i'}) {
>    194    # as grouprid we use the value of the sambaSID attribute for
>    195    # group of gidNumber=$userGidNumber
>    196    $group_entry = read_group_entry_gid($userGidNumber);
>    197    $userGroupSID =$group_entry->get_value('sambaSID');
>    198    unless ($userGroupSID) {
>    199      print "Error: SID not set for unix group $userGidNumber\n";
>    200      print "check if your unix group is mapped to an NT group\n";
>    201      exit (7);
>    202    }
>
>
> any idea?
>
> Jorge
>
> */Ryan Steele <steele at agora-net.com>/* escribió:
>
>     IT wrote:
>     > Anybody know whats wrong when the commands
>     >
>     > smbldap-useradd or populate work fine with ldap but cant create
>     > unix/linux accounts ????
>     >
>     >
>     > Pelase Help.
>     >
>     >
>     > Jorge
>     >
>     >
>     > __________________________________________________
>     > Correo Yahoo!
>     > Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
>     > ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
>     >
>     I think you have to provide it the "-a" option if you want it to
>     create
>     a posix account. List, correct me if I'm wrong. Hope that helps,
>     Jorge.
>
>     Best,
>     Ryan
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
>



More information about the samba mailing list