Re: what is the best way to a new user and put him in to few groups?

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

 



The best way in my opinion is to generate template using migration tools. Then when you want to add new user use sed to modify it and pipe result to ldapmodify or target it with -a option in ldapadd command. New passwords you can generate using slappasswd or ldappasswd (after user is added to ldap). Please rea man pages of this commands. Slappasswd is part of openldap-severs.

You could use echo to write the same content to ldif file but is this a big diference? If you prefer using echo this way is still good because you will get example user ldif.

Greg.

Message send from htc desire

04-08-2012 01:15, "Fosiul Alam" <fosiul@xxxxxxxxx> napisał(a):
Hi thanks

I m thinking to use simple bash script to create a ldif file.
I think that canbe done .. But could you please tell me what would be the structure of ldif file , suppose if i want to create a user call john smith under bellow structure
ou=users,l=uk,dc=fosiul,dc=lan"

Thanks



On 4 Aug 2012, at 00:01, Paul Robert Marino <prmarino1@xxxxxxxxx> wrote:

ou=users,l=uk,dc=fosiul,dc=lan"

--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[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