Re: Nice feature
Greg Matthews <[email protected]> Tue, 21 Dec 2004 09:58:04 +0000
| Newsgroups | gmane.network.directoryadmin |
|---|---|
| Organization | iTSS |
| Message-ID | <[email protected]> |
On Tue, 2004-12-21 at 09:06, Mike Jackson wrote: > Ryan Golhar wrote: > > You know what would be really nice...a command-line version of DA. > > > > I basically use this tool to create new users. It would be even more > > convenient for me to add users if I could pass everything on the > > command-line. This way, I can write a script to gather the necessary > > information and call DA from a shell to add the user. I can then give > > other users sudo access to add users w/o training them on a new > > interface... > > I wrote a command-line tool to add users to a directory. It allows you to specify all of the > required posixAccount attributes. It doesn't (yet) do uid or uidnumber uniqueness checking, but I > suppose that wouldn't be too difficult to add. I can send it to you if you like. It's written in > perl, using Net::LDAP. I too have some perl scripts to replace useradd/userdel etc. They are based on some that I found on the net but heavily modified to add most of the required posix attributes and check for uidnumber uniqueness etc (this was the biggest priority for me otherwise you may as well use a browser). They are also quite strict about encryption to protect the manager password, and use a config file for site preferences. This is a bit off-topic for the DA list but if anyone is interested I dont mind posting them to the interop list: http://lists.fini.net/mailman/listinfo/ldap-interop There are other utils available. I spent a while trying to get "cpu" to work on solaris. I could get it to compile but not run. This is a drop-in replacment for the user/group tools and works well on linux: http://cpu.sourceforge.net/ Looking at recent release notes it may work on Solaris now. There is also LED which allows you to edit what looks like a flat file and transcribes the changes to the LDAP directory: http://sourceforge.net/projects/led hth G > > -- > mike > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Directoryadmin-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/directoryadmin-list -- Greg Matthews iTSS Wallingford 01491 692445 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/