Dominik Zalewski <[EMAIL PROTECTED]> writes: Hi,
> Problem is after I change things in /dev/nsswitch.conf. If I live it like > this: > > group: compat > passwd: compat > > I start slapd using /etc/rc.d/slapd start , then I change /etc/nsswitch.conf > to: > > group: files ldap > passwd: files ldap > > Everything is fine and users can login via ssh using their ldap password. I > can boot server with first configuration and run some script that will copy > second nsswitch.conf , but I dont like this solution and I dont understand > why its not working. Chicken & Egg problem, the system queries the ldap backend to get informations about the account it will use to start the ldap backend. I've made a change to /etc/rc.d/slapd that copies a ldap disabled nsswitch.conf to /etc in start_precmd() and then a ldap enabled nsswitch.conf to /etc in start_postcmd(). I've tried to toy with backend options in nsswitch.conf but no luck atm. Seems I'm not alone, see <[EMAIL PROTECTED]> regarding "nsswitch.conf problem with group status code" group: files [success=return notfound=continue unavail=continue tryagain=continue] ldap passwd: files [success=return notfound=continue unavail=continue tryagain=continue] ldap Regards Éric Masson -- l'anarchie, c'est pt'etre pas genial comme mode de gouvernement, mais c'est mieux que pas de gouvernement du tout. -+- Kevin in <http://www.le-gnu.net> -+- Ni Root, ni Maître. -+- _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
