Print this page
NEX-7320 /etc/nsswitch.ldap needs to be modified to not break share operations
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Revert "NEX-2617 changed in nsswitch.ldap to allow by-host name server resolve during ldapclient configuration"
This reverts commit d976c53a36e6bdbff4a34beeb725cccf7fe10e0c.
NEX-2617 changed in nsswitch.ldap to allow by-host name server resolve during ldapclient configuration

*** 1,5 **** --- 1,6 ---- + # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License.
*** 22,70 **** # # /etc/nsswitch.ldap: # # An example file that could be copied over to /etc/nsswitch.conf; it ! # uses LDAP in conjunction with files. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. # LDAP service requires that svc:/network/ldap/client:default be enabled # and online. - # the following two lines obviate the "+" entry in /etc/passwd and /etc/group. passwd: files ldap group: files ldap ! # consult /etc "files" only if ldap is down. ! hosts: files ldap # Note that IPv4 addresses are searched for in all of the ipnodes databases # before searching the hosts databases. ! ipnodes: files ldap ! networks: files ldap ! protocols: files ldap ! rpc: files ldap ! ethers: files ldap ! netmasks: files ldap ! bootparams: files ldap ! publickey: files ldap ! netgroup: ldap ! automount: files ldap ! aliases: files ldap ! # for efficient getservbyname() avoid ldap ! services: files ldap ! printers: user files ldap ! auth_attr: files ldap ! prof_attr: files ldap ! project: files ldap ! ! tnrhtp: files ldap ! tnrhdb: files ldap --- 23,72 ---- # # /etc/nsswitch.ldap: # # An example file that could be copied over to /etc/nsswitch.conf; it ! # uses LDAP in conjunction with files and DNS. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. # LDAP service requires that svc:/network/ldap/client:default be enabled # and online. + # DNS service expects that an instance of svc:/network/dns/client be + # enabled and online. passwd: files ldap group: files ldap ! # You must also set up the /etc/resolv.conf file for DNS name ! # server lookup. See resolv.conf(4). For lookup via mdns ! # svc:/network/dns/multicast:default must also be enabled. See mdnsd(1M) ! hosts: files dns mdns # Note that IPv4 addresses are searched for in all of the ipnodes databases # before searching the hosts databases. ! ipnodes: files dns mdns ! networks: files ! protocols: files ! rpc: files ! ethers: files ! netmasks: files ! bootparams: files ! publickey: files ! netgroup: files ! automount: files ! aliases: files ! services: files ! printers: user files ! auth_attr: files ! prof_attr: files ! project: files ! tnrhtp: files ! tnrhdb: files