LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   LDAP + IPv6 (http://www.linuxquestions.org/questions/linux-server-73/ldap-ipv6-4175419885/)

gnu699 08-01-2012 09:48 PM

LDAP + IPv6
 
Hello all!


I have 2 OpenLDAP servers. One with ubuntu-10.04 (package openldap-2.4.21) and the other with ubuntu-12.04 (package openldap-2.4.28 ).
I have the project to configure a IPv6 network.

My question is:
How can i say if i have the IPv6 support enable or disable on OpenLDAP?


Thank you very much!

anomie 08-02-2012 03:41 PM

So long as your system supports IPv6, slapd(8) can be told to listen on an IPv6 address using its -h option. By default, it listens on all addresses.

(I am not certain where Ubuntu keeps its daemon configuration options, so you may want to check their online documentation, or query OpenLDAP's package files.)

gnu699 08-03-2012 12:48 PM

Hello anomie,


Thank you for the -h option.

I found another way to see it:
Code:

# netstat -pantu
tcp6    :::389  :::*  LISTEN  687/slapd

Just for information for people who pass by this post:
There is nothing to do with ipv6 in openldap.
Like you say it anomie, "By default, it listens on all addresses.".
What means that the type of connection (ipv4 or ipv6) to search the information in the database depends of the consumer.
If the consumer speaks ipv4, the server will answer it ipv4.
If the consumer speaks ipv6, the server will answer it ipv6.
Don't look farther.
If you want to slapd listen specifically on a type of network (man 8 slapd):
-4 Listen on ipv4 addresses only
-6 Listen on ipv6 addresses only
It's important to read the "schemas" to understand the format and how to implement/integrate informations into the database of openldap.
And, if there is no way to implement ipv6 informations, contact the author of the schema.

Have a nice day :cool:


All times are GMT -5. The time now is 05:48 AM.