niya levi
2016-Sep-16 14:32 UTC
[Samba] samba-tool user create - how to get next available uid from active directory
Hi all is there a way to retrieve the next available uid from the active directory to apply it as a rfc2307 attribute to a new user ? shadrock
Rowland Penny
2016-Sep-16 14:56 UTC
[Samba] samba-tool user create - how to get next available uid from active directory
On Fri, 16 Sep 2016 15:32:52 +0100 niya levi via samba <samba at lists.samba.org> wrote:> Hi all > > is there a way to retrieve the next available uid from the active > directory to apply it as a rfc2307 attribute to a new user ? > > shadrock >Sorry, with samba-tool there is no way to do this. The only way you can do it is with ADUC or by writing your own scripts. Rowland
Data Control Systems - Mike Elkevizth
2016-Sep-16 15:10 UTC
[Samba] samba-tool user create - how to get next available uid from active directory
You can check the wiki page https://wiki.samba.org/index.php/Administer_Unix_Attributes_in_AD_via_ADUC#Defining_the_next_UID.2FGID_to_use which describes how to manually get / change the value. Mike E. On Fri, Sep 16, 2016 at 10:56 AM, Rowland Penny via samba < samba at lists.samba.org> wrote:> On Fri, 16 Sep 2016 15:32:52 +0100 > niya levi via samba <samba at lists.samba.org> wrote: > > > Hi all > > > > is there a way to retrieve the next available uid from the active > > directory to apply it as a rfc2307 attribute to a new user ? > > > > shadrock > > > > Sorry, with samba-tool there is no way to do this. The only way you > can do it is with ADUC or by writing your own scripts. > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
John Gardeniers
2016-Sep-16 22:20 UTC
[Samba] samba-tool user create - how to get next available uid from active directory
Attached is a Perl script I use for this. Edit the domain and account info to suit your environment. We use a dedicate LDAP account for this kind of stuff. regards, John On 17/09/16 00:32, niya levi via samba wrote:> Hi all > > is there a way to retrieve the next available uid from the active > directory to apply it as a rfc2307 attribute to a new user ? > > shadrock > >
Seemingly Similar Threads
- samba-tool user create - how to get next available uid from active directory
- point n print driver deployment for canon ip7250
- setup-sysvol-bidirectional.sh unable to id administrator
- setup-sysvol-bidirectional.sh unable to id administrator
- is samba ad dc the domain and local master browser ?