Hi Arunmozhi,
I tried the updated migration script.
In OpenDJ I had my custom attributes added through Gluu Web UI, except the default admin user I imported two additional users to OpenDJ with those custom attributes.
Here is a sample user from ldif file:
```
dn: inum=@!E499.AD59.CB91.757D!0001!AFB0.E328!0000!A8F2.DE1E.D7FC,ou=people,o=@!E499.AD59.CB91.757D!0001!AFB0.E328,o=gluu
inum: @!E499.AD59.CB91.757D!0001!AFB0.E328!0000!A8F2.DE1E.D7FC
objectClass: gluuPerson
cn:
web: {"product":"web","entitlements":[{"ID":"bb0cb915-2c0c-4e56-b471-23882026a626","source":"gp:12999763169054705758.1384811746159600","start":1397189359,"end":1399997359}]}
app: {"product":"app","entitlements":[{"ID":"3034617d-bfce-41b4-968b-f9c2e80e09ba","source":"gp:12999763169054705758.1384811746159600","start":1397189359,"end":1399997359}]}
displayName:
gluuStatus: active
iname: *person*dbantroch@example.com
uid: dbantroch@example.com
userPassword: heslo
legacyPassword: heslo
objectClass: ox-E499AD59CB91757D0001AFB0E328
objectClass: top
```
When the user is imported to OpenDJ the userPassoword is hashed to SSHA512.
After running the migration script I got the following:
```
GLUU.root@idp:~/community-edition-setup/openldap_migration# python setup_openldap.py
INFO Scanning setup.properties.last for data
INFO Converting existing custom attributes to OpenLDAP schema
WARNING Skipping Line: modifiersName: cn=Directory Manager,cn=Root DNs,cn=config
WARNING Skipping Line: modifyTimestamp: 20161102070048Z
Traceback (most recent call last):
File "setup_openldap.py", line 236, in <module>
setup.render_templates()
File "setup_openldap.py", line 90, in render_templates
self.outputFolder)
File "setup_openldap.py", line 81, in renderTemplate
newFn.write(template_text % self.__dict__)
KeyError: 'encoded_ldap_pw'
```
The error is probably with passwords.. so I tried the same (reverted back my virtual machine with Gluu to a clean state) but only with custom attributes added, no additional users imported except the default admin users. Got the the same error.
I gave it a third time - **without any custom attributes added** (so same as on Monday when the script worked) or any modification, the script fails again..
Now with this error:
```
GLUU.root@idp:~/community-edition-setup/openldap_migration# python setup_openldap.py
INFO Scanning setup.properties.last for data
INFO Converting existing custom attributes to OpenLDAP schema
Traceback (most recent call last):
File "setup_openldap.py", line 235, in <module>
setup.create_user_schema()
File "setup_openldap.py", line 218, in create_user_schema
with open(schema_99, 'r') as olduser:
IOError: [Errno 2] No such file or directory: '/opt/opendj/config/schema/99-user.ldif'
```
Previously, on Monday, when no custom attributes were present the script worked fine.
Please advice.
Regards,
Attila.