Re: Build nslcd for Solaris 10 and Solaris 11
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: Build nslcd for Solaris 10 and Solaris 11
- From: Dirk Gloede <dirk [at] soft.cs.uni-potsdam.de>
- To: nss-pam-ldapd-users <nss-pam-ldapd-users [at] lists.arthurdejong.org>
- Subject: Re: Build nslcd for Solaris 10 and Solaris 11
- Date: Thu, 25 Jan 2018 12:48:11 +0100
I have two Problems. On Solaris 10 is my environment
too old, but is ok, there i dont need nslcd.
The last servers will remove this year.
On Thu, 2018-01-18 at 08:03, Arthur de Jong wrote:
> On Wed, 2018-01-17 at 13:40 +0100, Dirk Gloede wrote:
> > I try compile nss-pam-ldapd on Solaris 11.3 and Solaris 10 u11, but
> > it failed.
>
> What errors are you getting?
>
> In general, nss-pam-ldapd is most thoroughly tested together with
> OpenLDAP client libraries but it worked on Solaris in the past.
>
> One thing I did find on Solaris 10 11 is that the C library handles the
> ldap name in /etc/nsswitch.conf differently and seems to do some hard-
> coded special handling.
>
> This is what I use on my Solaris 10 test machine:
>
> export PATH=/sbin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin
> ./configure --enable-warnings --with-module-name=ldapd PATH="$PATH"
On Solaris 11 I use
./configure --enable-warnings --with-module-name=ldapd
and get this.
../compat/ldap_compat.h:85:53: error: expected declaration specifiers or
'...' before 'LDAPDerefSpec'
derefctrl.c:33:53: error: expected declaration specifiers or '...'
before 'LDAPDerefSpec'
derefctrl.c: In function 'replacement_ldap_create_deref_control':
derefctrl.c:40:3: error: implicit declaration of function
'ldap_create_deref_control_value'
derefctrl.c:40:3: warning: nested extern declaration of
'ldap_create_deref_control_value'
derefctrl.c:40:44: error: 'ds' undeclared (first use in this function)
derefctrl.c:40:44: note: each undeclared identifier is reported only
once for each function it appears in
derefctrl.c:43:3: error: implicit declaration of function
'ldap_control_create'
derefctrl.c:43:3: warning: nested extern declaration of
'ldap_control_create'
derefctrl.c:46:5: error: implicit declaration of function 'ber_memfree'
derefctrl.c:46:5: warning: nested extern declaration of 'ber_memfree'
gmake[2]: *** [derefctrl.o] Error 1
gmake[2]: Leaving directory `/tmp/nss-pam-ldapd-0.9.8/compat'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/nss-pam-ldapd-0.9.8'
gmake: *** [all] Error 2
I use gcc version 4.5.2 (GCC)
Thanks D. Gloede
> It is pretty clear that the NSS module API in Solaris not not really
> meant for third-party providers because the API changes between Solaris
> versions and is largely undocumented.
>
> In the past I ran some Solaris machines and the default-provided LDAP
> NSS modules were pretty OK (although you have to have some schema
> tweaks if you also want automounter maps from LDAP).
>
> Hope this helps,
>
> --
> -- arthur - arthur@arthurdejong.org - https://arthurdejong.org/ --
--
-------------------------------------------------------------
| Dirk Gloede e-Mail: dirk@soft.cs.uni-potsdam.de |
| Tel.: (0331) 977-3046 dirk@cs.uni-potsdam.de |
| Fax: (0331) 977-3042 |
-------------------------------------------------------------
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/nss-pam-ldapd-users/