Problem compiling latest HEAD-Samba 3.0-alpha15 (with winbindd and pam) on HP-UX - Possible Bug

Mike samba at miratek.com
Sat Mar 9 10:46:03 GMT 2002


I applied all the changes that Don e-mailed to the samba-technical list (patch dated 3/5). I was able to successfully compile the latest CVS HEAD source code on HP-UX 11 with winbind and pam. Initially everything looked good and most of it worked. The problem rose when I tried to login to the HP-UX server using telnet. I got an error in the system log that it can't open /usr/lib/security/libpam_winbind.1 which is a copy of nsswitch/pam_winbind.so

I am trying to get this working so that I cane use "winbind use default domain". I 

Could it be that the compiled library is not good? Or could it be that not all the changes that were applied to samba-2.2.3 to get winbind to work on HP-UX 11 did not make it to samba-3.0-alpha15.

Here are some results:

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

root[/opt/samba/bin]#./net rpc join                         
Password:
Joined domain DOAMI?.
root[/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[/usr/lib/security]#ls -l /usr/lib/security/libpam_winbind.1
-rwxr-xr-x   1 root       sys          40960 Mar  5 20:59  libpam_winbind.1*

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

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


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
.
.
.
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

Thanks for your help,

Mike







More information about the samba-technical mailing list