[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Limit which database is reachable on which port (slapd is listening on)?
- To: Karsten Heymann <karsten.heymann@gmail.com>
- Subject: Re: Limit which database is reachable on which port (slapd is listening on)?
- From: John Lewis <oflameo2@gmail.com>
- Date: Tue, 20 Jun 2017 08:18:24 -0400
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=VshkIC2gH+wRWAHusCyG3LB0+Ma+mKBW5m2HzQbuSDg=; b=cQAi1BlAsjJZ0IpJkl1/81aM+JAyylbNO1g3YnZpT2+C+oUWs+VwUx/ptgwtzEptIg 7iyLVAmnolr3XKUvVvC2fxVgK/YO4rMGuU86FxmeYyB8CodsWcBivVDPc45BMAPVgt54 I5LNnPyhR0YXNtvCyesX9Ov4VTuVMXw8hwroB6ZPTKaUfjsXMvZtprSh8AeX6FcKzmKQ aypI7n1dR8KbY7OxLcSuSI0WzZOp0DMNb7RfIiA1VGw6Lbfa5E4Apiew1kVLvwX9MTu7 ZTg424WCIEu28+0whcu+QtAztcBpB7Aa5pTD7mnpk6W5yOdSgeHq6KRXQRD/p92IYb+c nMjQ==
- In-reply-to: <CAL017hAEEyV0BVqZwngzn0b-bR3UEwcir0g_39=GFTDJzhD1FA@mail.gmail.com>
- References: <CAL017hD3vjRVYL1cKxhZggvt18pPUaC9PAyXcHCTdjzp7QndBw@mail.gmail.com> <WM!a8b90e2e2f2939888239ca5ebe0e7ea040b47e169d02742f63bb69b8524aa7d810edc144416bf8c95ebd96dda6c3f69b!@mailstronghold-3.zmailcloud.com> <0ffbedf6-bc81-65cb-63e7-c73de6c58ca6@symas.com> <CAL017hAP=deV198PrBvRy4dA7tEQ+A_tiTaL7hoD23oGaLiAwg@mail.gmail.com> <1497916932.19583.18.camel@gmail.com> <CAL017hAEEyV0BVqZwngzn0b-bR3UEwcir0g_39=GFTDJzhD1FA@mail.gmail.com>
On Tue, 2017-06-20 at 08:23 +0200, Karsten Heymann wrote:
> Hi John,
>
> 2017-06-20 2:02 GMT+02:00 John Lewis <oflameo2@gmail.com>:
> > On Mon, 2017-06-19 at 16:46 +0200, Karsten Heymann wrote:
> >> 2017-06-19 15:48 GMT+02:00 Howard Chu <hyc@symas.com>:
> >> > Read the slapd.access(5) manpage, use an ACL specifying sockname=xxx for the
> >> > local port identifier.
>
> > Sorry to hijack this thread, but is there anyway to limit which database
> > is reachable on the same port based on domain the in coming connection
> > is trying to use like name based virtual hosting like name based virtual
> > hosting in the apache web server. I want to make the interfaces as
> > friendly as possible without waisting IPv4 addresses.
>
> Yes, that's a standard ldap feature. You differentiate between
> different databases on the same server by providing different basedns
> when connecting.
>
> Example:
> If you have a ldap server with the databases o=companyA and
> o=companyB, you can (and in fact have to) specify which database/tree
> you are searching:
>
> ldapsearch -H ldap://<my ldap server>/ -b o=companyA givenName=Bob
> ldapsearch -H ldap://<my ldap server>/ -b o=companyB givenName=Alive
>
> will search for Bobs in the companyA database and for Alices in the
> companyB database.
>
> Was that your question?
>
> Best regards
> Karsten
I know that, but can DNS influence LDAP or are they completely
independent and all of the name redirection all the clients
responsibility? For example I have two domains stuff.com and junk.net If
someone tried to connect to stuff.com of a port that is running
stuff.com can it automatically connect them into stuff.com and visa
versa or do they need to know where they are going to and would have to
see that both sites are running via the DIT and choose which site
themselves explicitly?