Problem compiling Samba 3.0 (with winbindd) on HP-UX - one m ore thing...

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Mon Mar 11 15:38:07 GMT 2002


Hi Mike,
I think I've nailed it - samba_head is using a new routine called "D()" to
dump out some info, and it is not gettting included in the make of
pam_winbind.so library, so the "can not load module"....  I'm checking now
to see where this lives, and why it's a problem, but commenting out all
occurances of the call to this in pam_winbind.c and rebuilding has allowed
me to ftp into my server using winbind...  
I'll let you know what I find out.
Don

-----Original Message-----
From: Mike [mailto:samba at miratek.com]
Sent: Wednesday, March 06, 2002 12:42 AM
To: 'MCCALL,DON (HP-USA,ex1)'
Subject: RE: Problem compiling Samba 3.0 (with winbindd) on HP-UX - one
more thing...



Hi Don,

I applied all the changes that you e-mailed me. I think we are very
close. I was able to successfully compile samba 3.0-alpha15. It almost
worked. 

I start smbd, nmbd, and winbind then I can do:

root at glprod[/opt/samba/bin]#./net rpc join                         
Password:
Joined domain UEIC.
root at glprod[/opt/samba/bin]#./wbinfo -t

Secret is good
root at glprod[/opt/samba/bin]#/opt/samba/bin/wbinfo -a
administrator%pasword
plaintext password authentication failed
error code was NT_STATUS_INVALID_PARAMETER (0xc000000d)
Could not authenticate user administrator%ug0n0w with plaintext password
challenge/response password authentication succeeded
error code was NT_STATUS_OK (0x0)

But when I try to telnet using one of the NT domain users (after
altering nsswitch.conf and pam.conf files) I get the following messages
in /var/adm/syslog/syslog.log file:
.
.
.
Mar  6 00:07:39 glprod : load_modules: can not open module
/usr/lib/security/libpam_winbind.1
Mar  6 00:07:39 glprod : load_modules: pam_sm_acct_mgmt() missing
Mar  6 00:07:39 glprod : load_modules: can not open module
/usr/lib/security/libpam_winbind.1

I tried deleting the server from server manager, add it manually and
that did not work either.

I copied the file /usr/lib/security/libpam_winbind.1 from the nsswitch/
pam_winbind.so

root at glprod[/]#ls -l /usr/lib/security/libpam_winbind.1
-rwxr-xr-x   1 root       sys          40960 Mar  5 20:59
/usr/lib/security/libpam_winbind.1*
root at glprod[/]#ls -l /gloviaio/samba/samba/source/nsswitch/*.so
-rwxr-xr-x   1 root       sys          24576 Mar  5 20:58
/gloviaio/samba/samba/source/nsswitch/libnss_winbind.so*
-rwxr-xr-x   1 root       sys          40960 Mar  5 20:58
/gloviaio/samba/samba/source/nsswitch/pam_winbind.so*

I stopped and started pwgr and that did not help either.

Could it be that the compiled library is not good? There was a warning
during the make step:
cc: "nsswitch/pam_winbind.c", line 591: warning 563: Argument #3 is not
the cor.
Compiling nsswitch/wb_common.c with +z
Compiling lib/snprintf.c with +z
Linking nsswitch/pam_winbind.so
/usr/bin/ld: (Warning) Ignoring -O option.  -b will override -O 
Compiling nsswitch/winbind_nss.c with +z
cc: "nsswitch/winbind_nss.c", line 843: warning 604: Pointers are not
assignmen.
cc: "nsswitch/winbind_nss.c", line 843: warning 563: Argument #4 is not
the cor.
cc: "nsswitch/winbind_nss.c", line 893: warning 604: Pointers are not
assignmen.
cc: "nsswitch/winbind_nss.c", line 893: warning 563: Argument #4 is not
the cor.
cc: "nsswitch/winbind_nss.c", line 907: warning 604: Pointers are not
assignmen.
cc: "nsswitch/winbind_nss.c", line 907: warning 563: Argument #4 is not
the cor.
cc: "nsswitch/winbind_nss.c", line 955: warning 604: Pointers are not
assignmen.
cc: "nsswitch/winbind_nss.c", line 955: warning 563: Argument #4 is not
the cor.
cc: "nsswitch/winbind_nss.c", line 969: warning 604: Pointers are not
assignmen.
cc: "nsswitch/winbind_nss.c", line 969: warning 563: Argument #4 is not
the cor.
cc: "nsswitch/winbind_nss.c", line 1091: warning 604: Pointers are not
assignme.
cc: "nsswitch/winbind_nss.c", line 1091: warning 563: Argument #5 is not
the co.
cc: "nsswitch/winbind_nss.c", line 1151: warning 604: Pointers are not
assignme.
cc: "nsswitch/winbind_nss.c", line 1151: warning 563: Argument #5 is not
the co.
cc: "nsswitch/winbind_nss.c", line 1166: warning 604: Pointers are not
assignme.
cc: "nsswitch/winbind_nss.c", line 1166: warning 563: Argument #5 is not
the co.
cc: "nsswitch/winbind_nss.c", line 1214: warning 604: Pointers are not
assignme.
cc: "nsswitch/winbind_nss.c", line 1214: warning 563: Argument #5 is not
the co.
cc: "nsswitch/winbind_nss.c", line 1229: warning 604: Pointers are not
assignme.
cc: "nsswitch/winbind_nss.c", line 1229: warning 563: Argument #5 is not
the co.
Linking nsswitch/libnss_winbind.so
/usr/bin/ld: (Warning) Ignoring -O option.  -b will override -O 
Compiling libsmb/libsmbclient.c with +z
cpp: "/usr/include/sys/xti.h", line 488: warning 2001: Redefinition of
macro TC.
cpp: "/usr/include/sys/xti.h", line 489: warning 2001: Redefinition of
macro TC.
Compiling lib/charcnv.c with +z
cpp: "/usr/include/sys/xti.h", line 488: warning 2001: Redefinition of
macro TC.
cpp: "/usr/include/sys/xti.h", line 489: warning 2001: Redefinition of
macro TC.
Compiling lib/debug.c with +z

Any help is greatly appreciated.

Thanks,

Mike






More information about the samba-technical mailing list