Visitor Stats


Visits today:29
Visits yesterday:53
Visits in this month:1207
Visits total:104014
Bots today:24


13. Samples

13. SAMPLES


13.1. Samples for CFL/CSV-file.

In the sample files below the there are the following assumptions:

full dn of user

home directory

lara.auta.bhr
bert.auta.bhr
Hans.hbw test.hbw
henk.hbw test.hbw

\\fs-001\user\homes\lara
\\fs-00
1\user\homes\bert
\\fs-t
est\user\hans
\\fs-test\user\henk

In the table below you can see all the different user and context settings

simple

user and context

user and lookup

user and translate

user and fixed

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=0

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=0
context=2

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=1
context=2
cvalue=SA

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=2
context=2
cvalue=translate.txt

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=3
cvalue=auta.bhr

sample csv-files (all " quotes are left out!)

user
lara.auta.bhr
bert.auta.bhr
Hans.hbw test.hbw
henk.hbw test.hbw

user,context
lara,auta.bhr
bert,auta.bhr
Hans,hbw test.hbw
henk,hbw test.hbw

user,context
lara,automatisering
bert,automatisering
Hans,test-depart
henk,test-depart

*1

user,context
lara,automatisering
bert,automatisering
Hans,test-depart
henk,test-depart

*2

user
lara
bert
Hans
henk

*3

*1 For this to work you have to set the SA-attribute of auta.bhr to automatisering and the SA-attribute of hbr test.hbw to test-depart. Make sure that all contexts have a unique "code". You can use any string attribute of an organizational unit. You cannot select an organization, country or location!

*2 For user and translate you also need the file translate.txt with the following information:

automatisering=auta.bhr
test-depart=hbw test.hbw

*3 For hans and henk the context will be invalid, because all users must be in the context auta.bhr!

Samples of cfl/csv files with different home directory settings:
Home directory full-unc-path in csv-file.

CFL file

CVS-file sample

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=2
context=2
cvalue=translate.txt
!
createhome=1
homefl=0
homedirectory=3

user,context,homedir
"lara","automatisering","\\fs-001\user\h omes\lara"
"bert","automatisering", "\\fs-001\user\homes\bert"
"Hans","test-depart", "\\fs-test\user\hans"
"henk","test-depart", "\\fs-test\user\henk"


translate.txt


automatisering=auta.bhr
test-depart=hbw-test.hbw

 

Home directory path from csv-file, and login-name will be added.

CFL file

CVS-file sample

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=0
context=2
!
createhome=1
homefl=1
homedirectory=3

user,context,homedir
"lara","auta.bhr","\\fs-001\user\homes"
"bert","auta.bhr", "\\fs-001\user\homes"
"Hans","hbw-test.hbw", "\\fs-test\user"
"henk","hbw-test.hbw", "\\fs-test\user"


Home directory: servername from csv-file, fixed volume name, path from csv

CFL file

CVS-file sample

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=2
context=2
cvalue=translate.txt
!
createhome=1
homefl=2
home directory=3
serverfl=1
server=3
volumefl=0
volumename=user
pathfl=1
homedirectory=4

user,context,server,path
"lara","automatisering","fs-001", "homes\lara"
"bert","automatisering", "fs-001" ," homes\bert"
"Hans","test-depart", "fs-test","user\hans"
"henk","test-depart", "fs-test","user\henk"


translate.txt


automatisering=auta.bhr
test-depart=hbw-test.hbw


Result home directory path


\\fs-001\user\homes\lara
\\fs-001\user\homes\bert
\\fs-test\user\user\hans
\\fs-test\user\user\henk

Home directory: servername from csv-file, fixed volume name, path from csv+loginname

CFL file

CVS-file sample

CFLv1
csv=hbware.csv
title=1
seperator=,
quote="
!
user=1
userfl=1
contextfl=1
context=2
cvalue=SA
!
createhome=1
homefl=3
home directory=3
serverfl=1
server=3
volumefl=0
volumename=user
pathfl=1
homedirectory=4

user,context,server,path
"lara","automatisering","fs-001", "home s"
"bert","automatisering", "fs-001" ," homes"
"Hans","test-depart", "fs-test","user"
"henk","test-depart", "fs-test","user"


object

SA-Attribute value


auta.bhr
hbw-test.hbw

automatisering
test-depart


Result home directory path


\\fs-001\user\homes\lara
\\fs-001\user\homes\bert
\\fs-test\user\user\hans
\\fs-test\user\user\henk

13.2. Sample UserSpace restrictions from csv-file

Create a csv/cfl file like the one below. In this example the file is generated with the option: Home directory Userspace / DirQuota Export. You can however use other options for user selection. It is also possible to create the home directory and set the userspace info and/or DirQuota in one run.

In this sample the program uses the home directory attribute from the NDS and sets the userspace restrictions.

CFL


CSV


Program settings

CFLv1


"User","Context","Vol.Limit"


- select a cfl-file

csv=test.csv


"booj","auta.tw.wb","40000"


- select Use HomeAttr from NDS

Title=1


"aadg","auta.tw.wb","55000"


- check do not create directory

user=1




- uncheck Set Trustee

userfl=1




- check Set userspace restrictions

context=2




select tab Use/Dir Space

contexflt=0




- Select fixed value

createhome=0




- Check Use Value from CSV-file

userspacefl=1





userspace=3





-

13.3. Samples for create/update user objects.

to do.....