[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re[8]: Searching few domains for one uid
> --On Friday, July 13, 2012 10:12 AM +0200 kefast@o2.pl wrote:
>>
>>> --On Thursday, July 12, 2012 11:16 AM +0200 kefast@o2.pl wrote:
>>
>>
>>>>
>>>> I've got 3 databases on a server
>>>> dc=a,dc=com
>>>> dc=b,dc=com,dc=de
>>>> dc=c,dc=com,dc=fr
>>>>
>>>> When on a client side a pointed BASE ""
>>>> the server says:
>>>> slapd[13330]: do_search: invalid dn ("")
>>>>
>>>> Should I reconfigure my database maybe and set dn to "" ?
>>>> If yes how should the root dn look like ?
>>>> dn: ""
>>>> dc: ""
>>>> objectClass: top
>>>> objectClass: domain
>>>> structuralObjectClass: domain
>>
>>> The easiest thing to do is to create a single database, with a root of
>>> "". You don't need to create an entry for "" itself, as it is inherent
>>> to the openldap directory server.
>>
>>> First entry would (in your case) likely be for dn: dc=com
>>
>>> dn: dc=com
>>> objectClass: organization
>>> objectClass: dcObject
>>> o: com domain
>>> dc: com
>>
>>
>>> --Quanah
>>
>>
>>> --
>>
>>> Quanah Gibson-Mount
>>> Sr. Member of Technical Staff
>>> Zimbra, Inc
>>> A Division of VMware, Inc.
>>> --------------------
>>> Zimbra :: the leader in open source messaging and collaboration
>>
>>
>> But in my case not all of my domains finishs on .com in the end.
>> So beside a.com I've got b.com.de and b.com.fr, so in that case I'm
>> not sure the root "com" would do, so maybe making root as .corp and then
>> a.com.corp, b.com.de.corp, c.com.fr.corp.
>> And one more think, is that statement which combines all parts of a
>> domain in one dc would be ok ?
>> dn="ou=People,dc=b.com.de,dc=corp"
>> Would't it spoil something ?
> You are missing the point of using "". ;) The point of using "" is that
> you can store any and all domains in the same database.
> In your case, if you have .de and .fr, then create entries for them too:
> dn: dc=com
> objectClass: organization
> objectClass: dcObject
> o: com domain
> dc: com
> dn: dc=de
> objectClass: organization
> objectClass: dcObject
> o: de domain
> dc: de
> dn: dc=com, dc=de
> objectClass: organization
> objectClass: dcObject
> o: com.de domain
> dc: com
> dn: dc=fr
> objectClass: organization
> objectClass: dcObject
> o: fr domain
> dc: fr
> dn: dc=com, dc=fr
> objectClass: organization
> objectClass: dcObject
> o: com.fr domain
> dc: com
> etc.
> You could even create:
> dn: cn=IamWildAndCrazy
> objectClass: organizationalRole
> description: Insane entry
> cn: IamWildAndCrazy
> --Quanah
> --
> Quanah Gibson-Mount
> Sr. Member of Technical Staff
> Zimbra, Inc
> A Division of VMware, Inc.
> --------------------
> Zimbra :: the leader in open source messaging and collaboration
Ok, thanx, I do understand that, but my point is, where I can put
those "" in configuration files ? On a client side set BASE "" and in
slapd.conf
database bdb
suffix ""
rootdn "cn=admin"
?
How persisly set config files (client, server) to search for all of
those domains You listed.
--
Pozdrowienia,
kefast@o2.pl