You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by "Ravikumar, Praveen" <Pr...@intuit.com> on 2018/08/20 09:17:54 UTC
Error while importing the LDIF file
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&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&client_name=SAML2Client,ou=SSORequests,ou=XXX,o=YYYY.com<https://%3cdomain-name%3e:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&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&client_name=SAML2Client<https://%3cdomain-name%3e:8446/gateway/knoxsso/api/v1/websso?pac4jCallback=true&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.
Re: Error while importing the LDIF file
Posted by "Ravikumar, Praveen" <Pr...@intuit.com>.
Hi Loger,
Thanks for your response,
Sorry It was typo, but I tried importing with backslash \;
Added the sample LDIF file below - Could you please have a look and let me know if I need to change anything.
------------
LDIF File:
-----------
dn: ssoReqID=https://knox.idf-emr-e2e.a.xxx.com:8446/gateway/knoxsso/api/v1/websso?pac4jCallback\=true&\;client_name\=SAML2Client,ou=SSORequests,ou=Apps,o=Intuit.com
objectClass: ssorequest
objectClass: top
ssoReqID: https://knox.idf-emr-e2e.a.intuit.com:8446/gateway/knoxsso/api/v1/websso?pac4jCallback\=true&\;client_name\=SAML2Client
ssoReqDetails:
ssoReqHostName: not-assign
ssoReqKerberize: false
ssoReqLoginForm: true
ssoReqName: EMR-WEB-UIDEV22
ssoReqPrimEmail:
SSOReqRedirectURL:
ssoReqReturnAttrs: Mail:mail
ssoReqStatus: true
SSOReqToken: uid
ssoreqtype: FEDERATE
ssoReqURLEncode: false
Thanks,
Praveen.
On 8/21/18, 2:09 AM, "Lothar Haeger" <lo...@brummelhook.com> wrote:
Ravikumar, Praveen wrote:
> I tried adding backslash /; , but still its throwing the same exception.
> Could any please help me in this?
It's called "back"slash (in the context of a left-to-right script like English)
for a reason? Try "\;" ;-)
Re: Error while importing the LDIF file
Posted by Lothar Haeger <lo...@brummelhook.com>.
Ravikumar, Praveen wrote:
> I tried adding backslash /; , but still its throwing the same exception.
> Could any please help me in this?
It's called "back"slash (in the context of a left-to-right script like English)
for a reason? Try "\;" ;-)
Re: Error while importing the LDIF file
Posted by "Ravikumar, Praveen" <Pr...@intuit.com>.
Thanks for the response.
I tried adding backslash /; , but still its throwing the same exception. Could any please help me in this?
Praveen.
On 8/20/18, 3:19 AM, "Emmanuel Lécharny" <el...@gmail.com> wrote:
Le 20/08/2018 à 11:17, Ravikumar, Praveen a écrit :
> 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&client_name=SAML2Client .
The following chars are to be escaped in a DN:
DQUOTE (") / PLUS (+) / COMMA (,) / SEMI (;) / LANGLE (<) / RANGLE (>) /
SPACE (' ') / SHARP (#) / EQUALS (=)
--
Emmanuel Lecharny
Symas.com
directory.apache.org
Re: Error while importing the LDIF file
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 20/08/2018 à 11:17, Ravikumar, Praveen a écrit :
> 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&client_name=SAML2Client .
The following chars are to be escaped in a DN:
DQUOTE (") / PLUS (+) / COMMA (,) / SEMI (;) / LANGLE (<) / RANGLE (>) /
SPACE (' ') / SHARP (#) / EQUALS (=)
--
Emmanuel Lecharny
Symas.com
directory.apache.org