Thanks for the info. The extra "\" did allow the home dir to be formed 
appropriately.

However, I'm not getting an error after adding these two new entries. I tried 
them separately but get the same error.

I used Apache Studio and these two are listed but in the 
CN=Schema,CN=Configuration. Is there something else I need to add?

One other thing, I'm not sure why the "givenName" is labeled as "will not be 
written to the destination".

Nov 05 20:21:37 - DEBUG - Synchronizing user for {gidnumber=3000, uid=jirish, 
uidnumber=3067}
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  List of attributes 
considered for writing in destination: [sn, AD.userAccountControl, cn, 
sAMAccountName, gidNumber, uidNumber, objectClass, givenName, Home-Directory, 
Home-Drive]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "sn" is in 
FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute "sn" 
with values [jirish]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"AD.userAccountControl" is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"AD.userAccountControl" will not be written to the destination
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "cn" is in 
FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute "cn" 
with values [jirish]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"sAMAccountName" is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"sAMAccountName" with values [jirish]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "gidNumber" 
is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"gidNumber" with values [3000]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "uidNumber" 
is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"uidNumber" with values [3067]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"objectClass" is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"objectClass" with values [organizationalPerson, person, user, top]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "givenName" 
is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute "givenName" 
will not be written to the destination
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"Home-Directory" is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"Home-Directory" with values 
[\\host.domain.org\data3\windows\home\domain\jirish]
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Attribute 
"Home-Drive" is in FORCE status
Nov 05 20:21:37 - DEBUG - In entry "CN=jirish,CN=Users":  Adding attribute 
"Home-Drive" with values [H:]
Nov 05 20:21:37 - ERROR - Error while adding entry CN=jirish,CN=Users in 
directory :javax.naming.directory.NoSuchAttributeException: [LDAP: error code 
16 - 00000057: LdapErr: DSID-0C090C3E, comment: Error in attribute conversion 
operation, data 0, v1db1]; remaining name 'CN=jirish,CN=Users'
Nov 05 20:21:37 - ERROR - Error while synchronizing ID CN=jirish,CN=Users: 
java.lang.Exception: Technical problem while applying modifications to directory
Nov 05 20:21:37 - DEBUG - java.lang.Exception: Technical problem while applying 
modifications to directory
java.lang.Exception: Technical problem while applying modifications to directory
        at 
org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:399) 
[lsc-core-1.2.1.jar:na]
        at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:272) 
[lsc-core-1.2.1.jar:na]
        at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:155) 
[lsc-core-1.2.1.jar:na]
        at org.lsc.Launcher.run(Launcher.java:151) [lsc-core-1.2.1.jar:na]
        at org.lsc.Launcher.main(Launcher.java:123) [lsc-core-1.2.1.jar:na]
dn: CN=jirish,CN=Users,DC=server,DC=domain,DC=local
changetype: add
sn: jirish
cn: jirish
sAMAccountName: jirish
gidNumber: 3000
uidNumber: 1035
objectClass: organizationalPerson
objectClass: person
objectClass: user
objectClass: top
Home-Directory: \\host.domain.org\data3\windows\home\domain\jirish
Home-Drive: H:

-----Original Message-----
From: Clément OUDOT [mailto:[email protected]] 
Sent: Saturday, November 05, 2011 8:10 PM
To: Rohler, Brian L
Cc: [email protected]
Subject: Re: [lsc-users] syncing home directory and drive

2011/11/6 Rohler, Brian L <[email protected]>:
> I need to force a known value into the home directory in AD. Will 
> something like this ork?
>
>
>
> lsc.tasks.user.dstService.pivotAttrs = uid sAMAccountName uidNumber 
> home-directory home-drive
>
> lsc.tasks.user.dstService.attrs = sAMAccountName sn cn uidNumber 
> gidNumber objectClass AD.userAccountControl home-directory home-drive
>
>
>
> lsc.syncoptions.user.home-directory.create_value = 
> "\\nees06.neeshub.org\data3\windows\home\neeshub\" +
> srcBean.getAttributeValueById("uid")
>
> lsc.syncoptions.user.home-drive.create_value = "H:"

Yes this will create the value when the entry is added, but this will not force 
the value for an existing entry.

Also, take care to antislashes with Rhino, see
http://tools.lsc-project.org/issues/76

Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to