Automatically incrementing uidNumber

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Falgout wrote:
> Greetings -
> 
> I've been moving right along with the new release of fedora-ds on rhel4
> using the downloaded 7.1 rpm. I hoping that I just missed this, but is
> there a way to automatically increment the uidNumber for posix accounts -
> so when a new posix user gets created, the next uidNumber get's assigned
> to the new user? I accomplished this with phpLdapAdmin and openldap -
> phpLdapAdmin had function that would search for the highest uidNumber and
> increment it by 1 and populate the uidNumber attribute. If this doesn't
> exist yet, is there any chance of making that a feature request - either
> that or a uidNumber pool which keeps track of the last uidNumber used.


Until this is supported in the console, you can use a command line tool 
I wrote:


http://netauth.com/~jacksonm/code/newuser.pl.txt


It supports uid uniqueness checking and specified or auto-incrementing 
uidnumber, as well as specified or auto-incrementing gidnumber.

It even hashes the user's password before sending it over-the-wire, but 
it doesn't encrypt the bind password. If you have SSL turned on on your 
LDAP server, you could just use stunnel or you could modify that script 
to use SSL. It's pretty simple, just change this:

my $ldap    = Net::LDAP->new($SERVER)

to this:

my $ldap    = Net::LDAPS->new($SERVER)



BR,
Mike

-- 
LDAP Directory Consulting - http://www.netauth.com




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux