Leave a Comment:
8 comments
Hi Atul ,
I have deployed an Oracle internet directory 11 g version on a Oracle 11 g db , without weblogic domain , i could successfully install and configure the OID , and i have used database which is in AL32UTF8 . But , i am facing issues when i am adding users using ldapadd command using a preloaded ldif file , the errors are mainly these two
1.LDAP error code 19 with msg as ” ldap_add: Constraint violation
ldap_add: additional info: Password Policy Error :9004: GSL_PWDNUMERIC_EXCP :You
r Password must contain at least 1 numeric characters.”
2. LDAP Error Code 65 with msg as ”
ldap_add: Object class violation
ldap_add: additional info: sn attribute not found. Mandatory Attribute missing.
I know the reason for the first error is i have passwords (for eg: Tester) with no numerical chars in them(we used to have so in OID 10 g)
And the reason the 2nd error is occurring is i think because i have some dn s which have usernames with non latin characters
for eg : cn: Àndrea
uid: Àndrea
Any suggestions how to overcome these two ?
I tried changing pwd policy attributes to 0 (like : orclpwdencryptionenable=0, orclpwdminalphachars=0 )using ldapmodify and a new pwdpolicy.txt with above things set to 0 but i get this msg “do modify ****
modifying entry cn=default,cn=pwdPolicies,cn=Common,cn=Products,cn=OracleContext
ldap_modify: Type or value exists
ldap_modify: additional info: Attribute orclpwdencryptionenable is single valued
.”
and if i try ldapadd again i get above 1 and 2 errors .
thanks in advance , any advise will be helpful
@ Chethan,
For password policy, the one which is applicable for users container (cn=Users,dc=domain) is at cn=default,cn=pwdPolicies,cn=Common,cn=Products,cn=OracleContext,dc=domain
Replace dc=domain with your OID realm
Attribute to disable password policy is orclpwdPolicyEnable (set value to 0)
You can do this from GUI , using ODSM but for that you will need weblogic and configure run config.sh from $ORACLE_HOME/bin and select ODSM
Regarding user creation using ldif , I don’t think issue is with special character (I created user in my OID using ODSM with uid, sn, firstname as Àndrea ). Your issue could be because of wrong ldif file. Paste your ldif file with just 1 or users .
ReplyHi Atul ,
Thanks a lot for your reply, after i reset the pwd policy text i tried adding it using ldapadd it said that objects already exist so i tried ldapmodify with an ldif file like this :
dn: cn=default,cn=pwdPolicies,cn=Common,cn=Products,cn=OracleContext,dc=wa-ceqalab01,dc=filenet,dc=com
changetype:modify
replace: orclpwdpolicyenable
orclpwdpolicyenable: 0
and i could add users succesfully .
As for the 2nd issue
I get that error code for all these users :
dn: cn=Àndrea,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: Àndrea
uid: Àndrea
displayName: Àndrea
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
mail: Àndrea@wa-star.vixn.com
userpassword: Genius1
dn: cn=Ándre,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: Ándre
uid: Ándre
displayName: Ándre
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
mail: Ándre@wa-star.vixn.com
userpassword: Genius1
dn: cn=Ândrew,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: Ândrew
uid: Ândrew
displayName: Ândrew
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
mail: Ândrew@wa-star.vixn.com
userpassword: Genius1
dn: cn=Ãngelo,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: Ãngelo
uid: Ãngelo
displayName: Ãngelo
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
mail: Ãngelo@wa-star.vixn.com
userpassword: Genius1
dn: cn=Änvander,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: Änvander
uid: Änvander
displayName: Änvander
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
mail: Änvander@wa-star.vixn.com
userpassword: Genius1
These are the other users which are getting added properly without errors :
”
dn: cn=OSAdmin,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: OSAdmin
uid: OSAdmin
displayName: OSAdmin
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
sn: OSAdmin
mail: OSAdmin@wa-star.vixn.com
userpassword: Genius1
dn: cn=GCDAdmin,ou=Content_Engine_Team,ou=Private,ou=Engineering,ou=vixn,dc=wa-star,dc=vixn,dc=com
cn: GCDAdmin
uid: GCDAdmin
displayName: GCDAdmin
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: Person
objectClass: Top
sn: GCDAdmin
mail: GCDAdmin@wa-star.vixn.com
userpassword: Genius1
“
Hi Atul ,
I could resolve the above issue by adding an sn attribute to dn’s which were missing those ,
but how can i verify or see the users that are already in OID ( i dont have an ODSM installed ) can i install odsm without weblogic ? Bcos currently my OID is without Weblogic?
If not odsm , is there a way for me to search the users i have already added , the ldapsearch is returning nothing back . But if i try to add the same users again i get a msg object already exists
Thanks,
Chethan
@ Chethan,
Q: can i install odsm without weblogic ? Bcos currently my OID is without Weblogic?
No, ODSM requires weblogic. Install weblogic and then run $ORACLE_HOME/bin/config.sh and select only ODSM . This should work.
Other option (without ODSM) is to use ldap browser like Apache LDAP Studio and use that to access objects in OID.
ReplyHi Atul ,
I initially added some users but some failed bcos of pwd constraint so i used this (dn: cn=default,cn=pwdPolicies,cn=Common,cn=Products,cn=OracleContext,dc=wa-ceqalab01,dc=filenet,dc=com
changetype:modify
replace: orclpwdpolicyenable
orclpwdpolicyenable: 0) in a ldif file with ldapmodify again to change my pwd policy , but when i try to add the user which failed for pwd constraint , it still fails for the same reason
the ldapmodify succeeds for changing the orclpwdpolicyenable to 0 but here is the ldapadd ooutput:
C:\Users\Administrator\Desktop\OID ldapadd logs>ldapadd -h cm-vmwdsh32.wa-ceqala
b01.filenet.com -p 3060 -D “cn=orcladmin” -w Genius123 -f “childXuser.ldif”
adding new entry cn=Genius,ou=Shared,ou=Engineering,ou=FileNet,dc=wa-ceqalab01,d
c=filenet,dc=com
ldap_add: Constraint violation
ldap_add: additional info: Password Policy Error :9004: GSL_PWDNUMERIC_EXCP :You
r Password must contain at least 1 numeric characters.
Any help appreciated
Hi Atul,
I have followed all the steps mentioned. When I tried to login using incorrect password for 5 times, authn_trycount value is set to 0 from 4 and no OAM-5 error is thrown. Max retry value in OAM, OIM and OID are set to 5, still the problem persists.
Thanks,
Bharathi K.