Greetings,

I’m facing an issue while adding below DN to LDAP.
DN = https://<dns-domain><https://%3cdns-domain%3e> 
:8443/gateway/knoxsso/api/v1/websso?pac4jCallback=true&amp;client_name=SAML2Client
 .

we are getting the below exception on importing the SP ID.

--------------------
ERROR Message:
---------------------
Error while importing LDIF
- Record is invalid: Invalid Dn
javax.naming.NamingException: Record is invalid: Invalid Dn
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:409)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdif(ImportLdifRunnable.java:272)
    at 
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.run(ImportLdifRunnable.java:218)
    at 
org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Record is invalid: Invalid Dn

------------
LDIF File:
-----------
dn: 
ssoReqID=https://<domain-name>:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&amp;client_name=SAML2Client,ou=SSORequests,ou=XXX,o=YYYY.com<https://%3cdomain-name%3e:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&amp;client_name=SAML2Client,ou=SSORequests,ou=XXX,o=YYYY.com>
objectClass: ssorequest
objectClass: top
ssoReqID: 
https://<domain-name>:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&amp;client_name=SAML2Client<https://%3cdomain-name%3e:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&amp;client_name=SAML2Client>
ssoReqDetails:
ssoReqHostName: not-assign
ssoReqKerberize: false
ssoReqLoginForm: true
ssoReqName:
ssoReqPrimEmail:
SSOReqRedirectURL:
ssoReqReturnAttrs: Mail:mail
ssoReqStatus: true
SSOReqToken: uid
ssoreqtype: FEDERATE
ssoReqURLEncode: false


I Suspect Semicolon character is causing the issue.
Could anyone help me how to import the above SP-ID format to LDAP.

Thanks,
Praveen.

Reply via email to