1752777 Members
6191 Online
108789 Solutions
New Discussion

Re: Samba4: no way?

 
SOLVED
Go to solution
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

I check the .sl file of samba4(is called with another name but is the same as  libwinbind_nss.so)

and there is no problem with unresolved symbols,the problem is samba4 won't compile with krb5

and if compiled with internal heimdal cannot join the samba4 dc server.

 

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

"_nss_winbind_initgroups_dyn"

 

 

Is possible to remove this call?

Is on linux and solaris header and .c files,but not on hpux header.

I don't understand why is ok on samba4 but not on samba3

is also defined on hp cifs server(wich doesn't work with samba4 ad)

 

grep nss_winbind_initgroups * -ir
Il file binario libnss_winbind.so corrisponde
winbind_nss_linux.c:NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
winbind_nss_linux.c:_nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
winbind_nss_netbsd.c:NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
winbind_nss_solaris.c:  _nss_winbind_initgroups_dyn(gmem->username,
winbind_nss_solaris.h:NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
Il file binario winbind_nss_solaris.o corrisponde

 

The libnss_winbind.so is the "broken" file,if i launch winbind with it linked to /usr/lib/hpux32/libnss_winbind.so.1

give the error

 

/usr/lib/hpux32/dld.so: Unsatisfied code symbol '_nss_winbind_initgroups_dyn' in load module '/usr/lib/hpux32/libnss_winbind.so.1'.
Killed
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Can be a samba bug?Or a linker bug?

I use gnu gcc from http://hpux.connect.org.uk/

i have tried also the aCC compiler,same result.

 

Dennis Handly
Acclaimed Contributor

Re: Samba4: no way?

>Can be a samba bug?  Or a linker bug?

 

Most likely a samba configuration bug.

If a linker or dld error, you should be able to manually find the shlib that contains that symbol.

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Is for sure a samba bug

because samba4 link this symbol fine.

The only problem is samba4 won't compile with mit krb5 so is useless

for my environement.

 

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

i found the library with undefined symbol

 

[27]     |            0|       0|FUNC |GLOB |0|   UNDEF|./winbind_nss_solaris.o:_nss_winbind_initgroups_dyn
[185]    |            0|       0|FUNC |GLOB |0|   UNDEF|./libnss_winbind.so:_nss_winbind_initgroups_dyn

 

I don't understand why link a solaris call

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

I have removed from configure the line

 

 WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o"

 Compile OK

 winbindd -D OK

 wbinfo -g ,-u  -i OK

 wbinfo -i userofsamba OK

 id userofsamba...NO :(

 

Of course i have set nsswitch for winbind

Dennis Handly
Acclaimed Contributor

Re: Samba4: no way?

>I found the library with undefined symbol

 

These are references not definitions.  But winbind_nss_solaris.c is the file with the problem.

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Found a solution for missed link

 

 nm -n /usr/lib/hpux32/libnss_winbind.so.1*|grep _nss_winbind_initgroups_dyn
[217]    |     67179808|     752|FUNC |GLOB |0|   .text|_nss_winbind_initgroups_dyn

 On configure script of samba i have put the same line of solaris

 

     *solaris*)
                # Solaris winbind client is implemented as a wrapper around
                # the Linux version.
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
                    ../nsswitch/winbind_nss_linux.o"
                ;;
        *hpux11*)
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
                    ../nsswitch/winbind_nss_linux.o"

 

 

But nsswitch still doesn't see the winbind users,lsof report library is loaded

 

 

lsof |grep libnss_winbind
smbd      29677    root  mem    REG            128,0x5    148984  82433 /opt/samba3/lib/libnss_winbind.so
smbd      29678    root  mem    REG            128,0x5    148984  82433 /opt/samba3/lib/libnss_winbind.so
winbindd  29822    root  mem    REG            128,0x7    148984  43195 /usr/lib/hpux32/libnss_winbind.so.1
winbindd  29823    root  mem    REG            128,0x7    148984  43195 /usr/lib/hpux32/libnss_winbind.so.1

 

 

passwd:       files winbind ldap 
group:        files winbind ldap 
hosts:        dns files wins
networks:     files ldap
protocols:    files ldap
rpc:          files ldap
publickey:    ldap [NOTFOUND=return] files
netgroup:     files ldap
automount:    files ldap
aliases:      files
services:     files ldap
[root@hpux2 /]# /opt/samba3/bin/wbinfo -i giuseppe
giuseppe:*:10000:10000:giuseppe:/home/giuseppe:/usr/local/bin/bash
[root@hpux2 /]# id giuseppe
Impossibile trovare l'utente giuseppe

 

uxbeginner22
Trusted Contributor
Solution

Re: Samba4: no way?

Finally i found the "true" solution

I try hp cifs server in a clean 11.23(the other was 11.31)

machine..and work perfect.

Id,wbinfo,all without recompiling nothing

On 11.31 only old cifs-server A.03.02.00

works with samba4 server ad