Re: [389-users] what is the best way to a new user and put him in to few groups?

2012-08-04 Thread Fosiul Alam
Hi thanks i am thinking to create ldif file by script .. but i am quite confused how the ldif will be for my structure.. when i do the ldap search i get this ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000 # extended LDIF # # LDAPv3 #

Re: [389-users] what is the best way to a new user and put him in to few groups?

2012-08-04 Thread Grzegorz Dwornicki
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)

Re: [389-users] what is the best way to a new user and put him in to few groups?

2012-08-03 Thread Fosiul Alam
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 A

Re: [389-users] what is the best way to a new user and put him in to few groups?

2012-08-03 Thread Paul Robert Marino
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

[389-users] what is the best way to a new user and put him in to few groups?

2012-08-03 Thread Fosiul Alam
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 firs