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]

 



well that really depends on what you are comfortable doing as far as code
an ldif piped the the ldap modify command is probably the easiest to
write however you could make something far more robust with the
NET::LDAP Perl module.
The one bad note about the Net::Ldap Perl module is it tends to take a
lot of lines of code to implement things that should be rather simple.
On the bright side there are a ton of other tools for 389 server that
were written using the module so there is a lot of examples and
experienced programers you can draw on for assistance.


On Fri, Aug 3, 2012 at 3:23 PM, Fosiul Alam <fosiul@xxxxxxxxx> wrote:
> Hi
> I am very new in ldap(Fedora Directory Server)
>
> I need to develop a script to add a new user and put it into few
> groups automatically.
>
> So wondering what would be best way .
> Putting the command in to a script should not be a issue.
> problem is what would be the best way
>
> shall i create ldiif first then insert that ldif into ldap ??
>
> my structure is like this :
> cn=Directory Manager" -w 'testtest' -b "ou=users,l=uk,dc=fosiul,dc=lan"
>
> suppose if i want to create a lidif.. for user John Smith
>
> how the ldif would be ?
> Thanks for your help
> --
> 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