You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to fake a LDAP configuration that uses no domain component dc=... at all. However, Ladle assumes that such a domain component always exists in severaldifferentplaces. Would it be possible to extend Ladle such that the domain component can be fully ommitted? Any help on this issue would be greatly appreciated. It would be great if you could make the domain component optional. Unfortunately I don't feel that I have the skill to create a PR on my own. Thanks for your time!
Here's an minimal example LDIF that I would like to be able to read with Ladle:
version: 1
dn: o=myorg
objectclass: organization
objectclass: top
o: myorg
l: Berlin
postalcode: 12345
streetaddress: 123 Some Street
dn: ou=myunit, o=myorg
objectclass: organizationalUnit
objectclass: top
ou: myunit
dn: uid=abcd123, ou=myunit, o=myorg
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: top
objectclass: person
cn: John Doe
sn: Doe
givenname: John
uid: abcd123
userpassword: {SHA}fDYHuOYbzxlE6ehQOmYPIfS28/E=
I have tried the following so far:
Omit the domain option in Server.new
Produces the following error
ApacheDS process failed: FATAL: ERR_268 Cannot find a partition for o=myorg
Set the domain option in Server.new to '' (empty string)
Produces the following error
ApacheDS process failed: FATAL: Missing argument for option: d
Set the domain option in Server.new to 'o=myorg'
Produces the following error
The domain component must start with 'dc='. 'o=myorg' does not. (RuntimeError)
@tpbowden didn't find a good solution with this gem, if I recall correctly. I am no longer working on the project where I used this so I am not sure how this is handled now.
I need to fake a LDAP configuration that uses no domain component
dc=...
at all. However, Ladle assumes that such a domain component always exists in several different places. Would it be possible to extend Ladle such that the domain component can be fully ommitted? Any help on this issue would be greatly appreciated. It would be great if you could make the domain component optional. Unfortunately I don't feel that I have the skill to create a PR on my own. Thanks for your time!Here's an minimal example LDIF that I would like to be able to read with Ladle:
I have tried the following so far:
domain
option inServer.new
Produces the following error
domain
option inServer.new
to''
(empty string)Produces the following error
domain
option inServer.new
to'o=myorg'
Produces the following error
domain
option inServer.new
to'o=myorg'
https://github.com/NUBIC/ladle/blob/master/lib/ladle/server.rb#L105-L107
Produces the following error
domain
option inServer.new
to'o=myorg'
https://github.com/NUBIC/ladle/blob/master/lib/ladle/server.rb#L105-L107
Curiously, this starts a LDAP server successfully, but still produces a Warning in ApacheDS:
Of course, now I have a running server but am missing the organization details.
The text was updated successfully, but these errors were encountered: