Novell Home

Adding Multiple Users to iFolder Professional 2 for a Staged Roll-out

Novell Cool Solutions: Trench
By David Guest

Digg This - Slashdot This

Posted: 13 Feb 2003
 

The easiest method for adding multiple users to the tree is to do this via LDAP. Export the branch of the tree using ICE to get an LDIF file containing just the cn. This should be done using the following command

ice -lIFUexprt1.log -eErrIFUExp.ldif -SLDAP -s1127.0.0.1 -p389 -dcn=admin,o=org -wpassword -bou=users,ou=location,o=org -csub -m -Fobjectclass=person -acn -t -DLDIF -fIFUser.ldif -B

This will give you an LDIF file called IFUser.ldif with user entries that look like:

dn: cn=dguest,ou=Users,ou=location,o=org
changetype: modify
add: cn
cn: dguest
-

Edit this file and replace the

add: cn
cn: dguest

with

add: objetClass
objectClass: iFolderUser
-
add: iFolderServer
iFolderServer: iFolder_Server_01
-
add: iFolderQuota
iFolderQuota: 200
-

This can be done using a global search and replace in a text editor, or through sed.

Then import the file to your server using the ICE command:

ice -lIFUImp1.log -eIFUimperr.ldif -SLDIF -fIFUser.ldif -a -c -DLDAP -s127.0.0.1 -p389 -dcn=admin,o=org -wpassword -v

Obviously you will have to edit the IP address, username and password to match your own service. But this will allow all the selected users to be added to iFolder quickly and easily.

If you have any questions you may contact David at davidguest@mail.com


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell