1 Reply Latest reply: Dec 3, 2012 9:29 AM by HansN RSS

    maximum number of ldap servers in a ldap_client_file?

    User371962
      What would be the maximum number of ldap servers in the ldap_client file, using the parameter NS_LDAP_SERVERS ?

      I also see examples of providing failover/fallback:

      Some examples have NS_LDAP_SERVERS=<server1>,<server2>,<server3>

      and some show

      NS_LDAP_SERVERS=<server1>
      NS_LDAP_SERVERS=<server2>
      NS_LDAP_SERVERS=<server3>

      Which is correct? Is there any authoritative documentation on this aspect of ldap client configuration?

      Thanks.

      Mike
        • 1. Re: maximum number of ldap servers in a ldap_client_file?
          HansN
          I believe the maximum is large, since the ldapclient source code (http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/ldap/ns_ldap/ldapclient.c#clientopts_new) allocates new memory for each multivalued element.

          The ldapclient file is generated by ldapclient init, so you should not have to worry about the syntax. In my environment the file has one line NS_LDAP_SERVERS:

          NS_LDAP_SERVERS= <ip-1>, <ip-2>

          Regards,

          Hans