ObjectClass PosixGroup + UID/GID auto-generation

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

 



Ryan Braun [ADS] wrote:
> On Monday 11 August 2008 11:35, Kashif Ali wrote:
> 
> But basically,  you just create an object that holds 2 values.  The current 
> available UID and GID.  Then your perl script queries ldap for that object,  
> uses the available UID,  then increments it and writes it back to ldap.
 > [..]
> $mesg = $ldap->modify("cn=idPool,ou=Special Users,$config{BASE_DN}", replace 
> => { "uidNumber" => $config{NextID}+1 } );

FWIW the original idea was different: For this to work reliably with 
multiple instances generating IDs from the same ID pool entry you have 
to explicitly delete the old value and add the new one. If the ID was 
already incremented by another process the old value was already 
replaced and the modify request fails.

Ciao, Michael.




[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