cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

[LDAP: error code 49 - Invalid Credentials]

Re: [LDAP: error code 49 - Invalid Credentials]

in addition with jndi you must respect this exact process :

your original map credential file is located at windchill\codebase\WEB-INF\mapCredentials.txt and looks like this if using an enterprise ldap :

mapcredentials.admin.adapters=net.<yourdomain>.Ldap^cn\=<DsAccount>r^encrypted.net.<yourdomain>.Ldap.cn\=<DsAccount>r;net.<yourdomain>.<yourserver>.ldap-pending^cn\=<DsAccount>^encrypted.net.<yourdomain>.<yourserver>.ldap-pending.cn\=<DsAccount>;net.<yourdomain>.EnterpriseLdap^<youraccount>^encrypted.net.<yourdomain>.EnterpriseLdap.<youraccount>
mapcredentials.nonprivileged.adapters=

The new map credential will erase the old one, using the shell, ldap info per ldap info, ie : ldap, pending then after ldap and ending with enterprise ldap.

caution : input the "-" with your keyboard rather than copy paste in the shell.   the "<>" must be replaced with "your data".

open a windchill shell and type :

xconfmanager -t codebase/WEB/mapCredentials.txt -s "mapcredentials.admin.adapters=net.<yourdomain>.EnterpriseLdap^CN=<youraccount>,OU=<depending on your enterprise ldap orgs>,OU=< same specific> -,DC=<yourdomaindc>,DC=net^<yourpassword>"

hit enter, the shell will display :

Default product root=[...]Windchill\bin\.. java -jar "[...]Windchill\bin\..\codebase\WEB-INF\lib\install.jar" -r "[...]Windchill\bin\.." -t codebase/WEB/mapCredentials.txt -s "mapcredentials.admin.adapters=net.yourdomain.EnterpriseLdap^CN=<youraccount>,OU=<depending on your enterprise ldap orgs>,OU=< same specific> -,DC=<yourdomain dc>,DC=net^<yourpassword>"

then type

xconfmanager -t codebase/WEB-INF/mapCredentials.txt --add "mapcredentials.admin.adapters=net.<yourdomain>.Ldap^cn=<DsAccount>^<DsPassword>"

hit enter, the shell will display :

Default product root=[...]Windchill\bin\.. java -jar "[...]Windchill\bin\..\codebase\WEB-INF\lib\install.jar" -r "[...]Windchill\bin\.." -t codebase/WEB-INF/mapCredentials.txt --add "mapcredentials.admin.adapters=net.yourdomain.Ldap^cn=<DsAccount>^<DsPassword>"

then type

xconfmanager -t codebase/WEB-INF/mapCredentials.txt --add "mapcredentials.admin.adapters=net.<yourdomain>.<yourserver>.ldap-pending^cn=<DsAccount>^<DsPassword>"

hit enter, the shell will display :

Default product root=[...]Windchill\bin\.. java -jar "[...]Windchill\bin\..\codebase\WEB-INF\lib\install.jar" -r "[...]Windchill\bin\.." -t codebase/WEB-INF/mapCredentials.txt --add "mapcredentials.admin.adapters=net.<yourdomain>.<yourserver>.ldap-pending^cn=<DsAccount>^<DsPassword>"

then type

xconfmanager -p

then restart apache an windchill.