RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread Miles Roper
Hi Don,

lrwxrwxrwx   1 root   sys 17 Feb  7 09:59 libnss_winbind.1
- li
bnss_winbind.so
-r-xr-xr-x   1 binbin  28672 Jan 24 15:23 libnss_winbind.so

Same problem, I was all excited there for a moment :o)

Cheers

Miles

-Original Message-
From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 09:50 a.m.
To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
[EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 'Esh, Andrew';
'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
Subject: RE: Winbind on HPUX 11, some small progress


Hi Miles,
reading further; 
change you link to the following:

lrwxr-xr-x   1 root   sys 46 Aug 27 11:16
/usr/lib/libnss_winbin
d.1 - libnss_winbind.so

We (HP-UX) don't know from .so files...
So winbind in nsswitch.conf entries is going to trigger looking for a
libnss_winbind.1
NOT a libnss_winbind.so.1

See if that doesn't help,
Don

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 15:41
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
 [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H Terpstra';
 GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 had the same problem, I thought compiling it from scratch may fix it,
 although I've only just recently worked out how to get the 
 extra debugging
 from pam, but symptoms were exactly the same.
 
 has taken me a long time to work out how to compile it on 
 hpux with gcc, had
 to change a include file and the configure script, i've 
 included it for you
 interest :o)
 
 in configure find
 
 if test $ac_cv_prog_cc_Ae = yes; then
  BLDSHARED=true
  SHLD=/usr/bin/ld
  LDSHFLAGS=-B symbolic -b -z
  PICFLAG=+z
 fi
 
 change to
 
 #if test $ac_cv_prog_cc_Ae = yes; then
  BLDSHARED=true
  SHLD=/usr/bin/ld
  LDSHFLAGS=-B symbolic -b -z
 # PICFLAG=+z
 #fi
 
 find 
 /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
 BEFORE
   extern int snprintf(char *, _hpux_size_t, char *,...);
 AFTER
   extern int snprintf(char *, _hpux_size_t, const char *,...);
 
 ps, that was quick :o)
 
 -Original Message-
 From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 7 February 2003 09:36 a.m.
 To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
 [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
 'Esh, Andrew';
 'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
 'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Miles,
 any reason you are compiling it yourself, instead of pulling 
 the depot from
 the samba ftp site?
 That is what I am using successfully.
 Don
 
  -Original Message-
  From: Miles Roper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 06, 2003 15:31
  To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
  '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
  [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
 Terpstra';
  GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  Hi Don,
  
  Michael Steffens a while back sent me a compiled version of 
  getent which I
  couldn't get to work.
  
  I compiled your version and it doesn't seem to produce any 
  result either,
  seems to return immeditaly without doing anything.
  
  ie
  coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper
  coastdr: /mnt/1/samba/test
  
  If I run it without any parameters I get a core dump :o)
  
  Better tell you that I'm compiling winbind with gcc 3.01 on hpux.  I
  compiled the getent program you sent me with.
  
  gcc -c -I. -g -O2 getent.c
  gcc -g getent.o -o getent
  
  From what you have said it would seem like libnss_winbind.so 
  itsn't working.
  Anyway to get any debug output?
  
  Here is my /usr/lib/libnss*
  
  -r-xr-xr-x   1 binbin  28672 Mar 13  2001 
  libnss_compat.1
  -r-xr-xr-x   1 binbin 104536 Nov  6  1997 
 libnss_dns.1
  -r-xr-xr-x   1 binbin  40960 Mar  7  2001 
  libnss_files.1
  lrwxrwxrwx   1 root   sys 17 Jan 27 09:49 
  libnss_ldap.1 -
  libns
  s_winbind.so
  -r-xr-xr-x   1 binbin  40960 Mar 13  2001 
 libnss_nis.1
  -r-xr-xr-x   1 binbin  57344 Mar 13  2001 
  libnss_nisplus.1
  -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
  libnss_winbind.so
  lrwxrwxrwx   1 root   sys 17 Jan 27 11:51
  libnss_winbind.so.1 -
   libnss_winbind.so
  lrwxrwxrwx   1 root   sys 17 Oct 15 16:14
  libnss_winbind.so.2

RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread MCCALL,DON (HP-USA,ex1)
Hi Miles,
Set log level = 10 in your smb.conf file
stop winbindd daemon and nmbd and smbd, and clear out your 
/var/opt/samba/log.*

Then start nmbd,smbd and winbindd
and do the getent command again.
After you do, check for a log.winbindd file and send it to me offlist.
Thanks,
Don

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 16:07
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 [EMAIL PROTECTED]; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Don,
 
 lrwxrwxrwx   1 root   sys 17 Feb  7 09:59 
 libnss_winbind.1
 - li
 bnss_winbind.so
 -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
 libnss_winbind.so
 
 Same problem, I was all excited there for a moment :o)
 
 Cheers
 
 Miles
 
 -Original Message-
 From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 7 February 2003 09:50 a.m.
 To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
 [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
 'Esh, Andrew';
 'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
 'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Miles,
 reading further; 
 change you link to the following:
 
 lrwxr-xr-x   1 root   sys 46 Aug 27 11:16
 /usr/lib/libnss_winbin
 d.1 - libnss_winbind.so
 
 We (HP-UX) don't know from .so files...
 So winbind in nsswitch.conf entries is going to trigger looking for a
 libnss_winbind.1
 NOT a libnss_winbind.so.1
 
 See if that doesn't help,
 Don
 
  -Original Message-
  From: Miles Roper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 06, 2003 15:41
  To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
  '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
  [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
 Terpstra';
  GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  had the same problem, I thought compiling it from scratch 
 may fix it,
  although I've only just recently worked out how to get the 
  extra debugging
  from pam, but symptoms were exactly the same.
  
  has taken me a long time to work out how to compile it on 
  hpux with gcc, had
  to change a include file and the configure script, i've 
  included it for you
  interest :o)
  
  in configure find
  
  if test $ac_cv_prog_cc_Ae = yes; then
   BLDSHARED=true
   SHLD=/usr/bin/ld
   LDSHFLAGS=-B symbolic -b -z
   PICFLAG=+z
  fi
  
  change to
  
  #if test $ac_cv_prog_cc_Ae = yes; then
   BLDSHARED=true
   SHLD=/usr/bin/ld
   LDSHFLAGS=-B symbolic -b -z
  # PICFLAG=+z
  #fi
  
  find 
  /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
  BEFORE
extern int snprintf(char *, _hpux_size_t, char *,...);
  AFTER
extern int snprintf(char *, _hpux_size_t, const char *,...);
  
  ps, that was quick :o)
  
  -Original Message-
  From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
  Sent: Friday, 7 February 2003 09:36 a.m.
  To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
  [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
  'Esh, Andrew';
  'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
  'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  Hi Miles,
  any reason you are compiling it yourself, instead of pulling 
  the depot from
  the samba ftp site?
  That is what I am using successfully.
  Don
  
   -Original Message-
   From: Miles Roper [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 06, 2003 15:31
   To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
   '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
   [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
  Terpstra';
   GILCHRIST,KIM (HP-NewZealand,ex1)
   Subject: RE: Winbind on HPUX 11, some small progress
   
   
   Hi Don,
   
   Michael Steffens a while back sent me a compiled version of 
   getent which I
   couldn't get to work.
   
   I compiled your version and it doesn't seem to produce any 
   result either,
   seems to return immeditaly without doing anything.
   
   ie
   coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper
   coastdr: /mnt/1/samba/test
   
   If I run it without any parameters I get a core dump :o)
   
   Better tell you that I'm compiling winbind with gcc 3.01 
 on hpux.  I
   compiled the getent program you sent me with.
   
   gcc -c -I. -g -O2 getent.c
   gcc -g getent.o -o getent
   
   From what you have said it would seem like libnss_winbind.so 
   itsn't working.
   Anyway to get any debug output?
   
   Here is my /usr/lib/libnss*
   
   -r-xr-xr-x   1 binbin  28672

RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread Esh, Andrew
I thought I was told early on in this discussion that HP-UX doesn't like
certain keywords in nsswitch.conf, and winbind is one of them. That being
the case, isn't libnss_winbind.1 useless?

Can another nsswitch keyword be faked into pointing at winbind? Maybe
libnss_ldap.1 - libnss_winbind.so, and a passwd: ldap files ... in
nsswitch.conf.

Also, a truss (or strace) on getent might show or fail to show
libnss_winbind.1 being loaded and called.

What else is known about winbind? The nss library is just a translation shim
that calls winbindd through a named pipe. Is the pipe file there while
winbindd is up and running? Does fuser show that winbindd has
/tmp/.winbindd/pipe open? How about netstat -ax | grep winbindd? Does
wbinfo work? It uses the same communication.

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 3:07 PM
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 [EMAIL PROTECTED]; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Don,
 
 lrwxrwxrwx   1 root   sys 17 Feb  7 09:59 
 libnss_winbind.1
 - li
 bnss_winbind.so
 -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
 libnss_winbind.so
 
 Same problem, I was all excited there for a moment :o)
 
 Cheers
 
 Miles
 
 -Original Message-
 From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 7 February 2003 09:50 a.m.
 To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
 [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
 'Esh, Andrew';
 'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
 'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Miles,
 reading further; 
 change you link to the following:
 
 lrwxr-xr-x   1 root   sys 46 Aug 27 11:16
 /usr/lib/libnss_winbin
 d.1 - libnss_winbind.so
 
 We (HP-UX) don't know from .so files...
 So winbind in nsswitch.conf entries is going to trigger looking for a
 libnss_winbind.1
 NOT a libnss_winbind.so.1
 
 See if that doesn't help,
 Don
 
  -Original Message-
  From: Miles Roper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 06, 2003 15:41
  To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
  '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
  [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
 Terpstra';
  GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  had the same problem, I thought compiling it from scratch 
 may fix it,
  although I've only just recently worked out how to get the 
  extra debugging
  from pam, but symptoms were exactly the same.
  
  has taken me a long time to work out how to compile it on 
  hpux with gcc, had
  to change a include file and the configure script, i've 
  included it for you
  interest :o)
  
  in configure find
  
  if test $ac_cv_prog_cc_Ae = yes; then
   BLDSHARED=true
   SHLD=/usr/bin/ld
   LDSHFLAGS=-B symbolic -b -z
   PICFLAG=+z
  fi
  
  change to
  
  #if test $ac_cv_prog_cc_Ae = yes; then
   BLDSHARED=true
   SHLD=/usr/bin/ld
   LDSHFLAGS=-B symbolic -b -z
  # PICFLAG=+z
  #fi
  
  find 
  /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
  BEFORE
extern int snprintf(char *, _hpux_size_t, char *,...);
  AFTER
extern int snprintf(char *, _hpux_size_t, const char *,...);
  
  ps, that was quick :o)
  
  -Original Message-
  From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
  Sent: Friday, 7 February 2003 09:36 a.m.
  To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
  [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
  'Esh, Andrew';
  'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
  'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  Hi Miles,
  any reason you are compiling it yourself, instead of pulling 
  the depot from
  the samba ftp site?
  That is what I am using successfully.
  Don
  
   -Original Message-
   From: Miles Roper [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 06, 2003 15:31
   To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
   '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
   [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
  Terpstra';
   GILCHRIST,KIM (HP-NewZealand,ex1)
   Subject: RE: Winbind on HPUX 11, some small progress
   
   
   Hi Don,
   
   Michael Steffens a while back sent me a compiled version of 
   getent which I
   couldn't get to work.
   
   I compiled your version and it doesn't seem to produce any 
   result either,
   seems to return immeditaly without doing anything.
   
   ie
   coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper

Re: Winbind on HPUX 11, some small progress

2003-02-06 Thread Michael Steffens
Esh, Andrew wrote:

I thought I was told early on in this discussion that HP-UX doesn't like
certain keywords in nsswitch.conf, and winbind is one of them. That being
the case, isn't libnss_winbind.1 useless?


Discovered recently that this is no longer true for 11.00. Patch PHCO_26089
is resolving the conflict with libpam_unix.1, such that one can configure
third party NSS backends honestly, without any faking around. :)

There is no such fix available for 11.11 yet, but I have been told it's
on the way.

Don's workaround using the -r option of the passwd command, explicitly
specifying the NSS backend to be used, does work on 11.11, however.
So one could already configure winbind NSS cleanly, provided PAM unix
password management is not required for anything else than the passwd
program.

Cheers!
Michael




RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread MCCALL,DON (HP-USA,ex1)
Hi Miles,
reading further; 
change you link to the following:

lrwxr-xr-x   1 root   sys 46 Aug 27 11:16
/usr/lib/libnss_winbin
d.1 - libnss_winbind.so

We (HP-UX) don't know from .so files...
So winbind in nsswitch.conf entries is going to trigger looking for a
libnss_winbind.1
NOT a libnss_winbind.so.1

See if that doesn't help,
Don

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 15:41
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
 [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H Terpstra';
 GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 had the same problem, I thought compiling it from scratch may fix it,
 although I've only just recently worked out how to get the 
 extra debugging
 from pam, but symptoms were exactly the same.
 
 has taken me a long time to work out how to compile it on 
 hpux with gcc, had
 to change a include file and the configure script, i've 
 included it for you
 interest :o)
 
 in configure find
 
 if test $ac_cv_prog_cc_Ae = yes; then
  BLDSHARED=true
  SHLD=/usr/bin/ld
  LDSHFLAGS=-B symbolic -b -z
  PICFLAG=+z
 fi
 
 change to
 
 #if test $ac_cv_prog_cc_Ae = yes; then
  BLDSHARED=true
  SHLD=/usr/bin/ld
  LDSHFLAGS=-B symbolic -b -z
 # PICFLAG=+z
 #fi
 
 find 
 /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
 BEFORE
   extern int snprintf(char *, _hpux_size_t, char *,...);
 AFTER
   extern int snprintf(char *, _hpux_size_t, const char *,...);
 
 ps, that was quick :o)
 
 -Original Message-
 From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 7 February 2003 09:36 a.m.
 To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
 [EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 
 'Esh, Andrew';
 'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
 'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Miles,
 any reason you are compiling it yourself, instead of pulling 
 the depot from
 the samba ftp site?
 That is what I am using successfully.
 Don
 
  -Original Message-
  From: Miles Roper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 06, 2003 15:31
  To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
  '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
  [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H 
 Terpstra';
  GILCHRIST,KIM (HP-NewZealand,ex1)
  Subject: RE: Winbind on HPUX 11, some small progress
  
  
  Hi Don,
  
  Michael Steffens a while back sent me a compiled version of 
  getent which I
  couldn't get to work.
  
  I compiled your version and it doesn't seem to produce any 
  result either,
  seems to return immeditaly without doing anything.
  
  ie
  coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper
  coastdr: /mnt/1/samba/test
  
  If I run it without any parameters I get a core dump :o)
  
  Better tell you that I'm compiling winbind with gcc 3.01 on hpux.  I
  compiled the getent program you sent me with.
  
  gcc -c -I. -g -O2 getent.c
  gcc -g getent.o -o getent
  
  From what you have said it would seem like libnss_winbind.so 
  itsn't working.
  Anyway to get any debug output?
  
  Here is my /usr/lib/libnss*
  
  -r-xr-xr-x   1 binbin  28672 Mar 13  2001 
  libnss_compat.1
  -r-xr-xr-x   1 binbin 104536 Nov  6  1997 
 libnss_dns.1
  -r-xr-xr-x   1 binbin  40960 Mar  7  2001 
  libnss_files.1
  lrwxrwxrwx   1 root   sys 17 Jan 27 09:49 
  libnss_ldap.1 -
  libns
  s_winbind.so
  -r-xr-xr-x   1 binbin  40960 Mar 13  2001 
 libnss_nis.1
  -r-xr-xr-x   1 binbin  57344 Mar 13  2001 
  libnss_nisplus.1
  -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
  libnss_winbind.so
  lrwxrwxrwx   1 root   sys 17 Jan 27 11:51
  libnss_winbind.so.1 -
   libnss_winbind.so
  lrwxrwxrwx   1 root   sys 17 Oct 15 16:14
  libnss_winbind.so.2 -
   libnss_winbind.so
  
  Here is my /etc/nsswitch.conf
  
  hosts: dns [NOTFOUND=continue UNAVAIL=continue 
  TRYAGAIN=continue] files
  [N
  OTFOUND=return UNAVAIL=continue TRYAGAIN=return]
  passwd: files winbind
  group: files winbind
  
  Here is the compile output from libnss_winbind.so
  
  Compiling nsswitch/winbind_nss.c with -fpic
  nsswitch/winbind_nss.c: In function `fill_pwent':
  nsswitch/winbind_nss.c:600: warning: passing arg 2 of 
  `get_static' from
  incompatible pointer type
  nsswitch/winbind_nss.c:612: warning: passing arg 2 of 
  `get_static' from
  incompatible pointer type
  nsswitch/winbind_nss.c:629: warning: passing arg

RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread Miles Roper
had the same problem, I thought compiling it from scratch may fix it,
although I've only just recently worked out how to get the extra debugging
from pam, but symptoms were exactly the same.

has taken me a long time to work out how to compile it on hpux with gcc, had
to change a include file and the configure script, i've included it for you
interest :o)

in configure find

if test $ac_cv_prog_cc_Ae = yes; then
 BLDSHARED=true
 SHLD=/usr/bin/ld
 LDSHFLAGS=-B symbolic -b -z
 PICFLAG=+z
fi

change to

#if test $ac_cv_prog_cc_Ae = yes; then
 BLDSHARED=true
 SHLD=/usr/bin/ld
 LDSHFLAGS=-B symbolic -b -z
# PICFLAG=+z
#fi

find 
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
BEFORE
  extern int snprintf(char *, _hpux_size_t, char *,...);
AFTER
  extern int snprintf(char *, _hpux_size_t, const char *,...);

ps, that was quick :o)

-Original Message-
From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 09:36 a.m.
To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
[EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 'Esh, Andrew';
'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
Subject: RE: Winbind on HPUX 11, some small progress


Hi Miles,
any reason you are compiling it yourself, instead of pulling the depot from
the samba ftp site?
That is what I am using successfully.
Don

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 15:31
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
 [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H Terpstra';
 GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Don,
 
 Michael Steffens a while back sent me a compiled version of 
 getent which I
 couldn't get to work.
 
 I compiled your version and it doesn't seem to produce any 
 result either,
 seems to return immeditaly without doing anything.
 
 ie
 coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper
 coastdr: /mnt/1/samba/test
 
 If I run it without any parameters I get a core dump :o)
 
 Better tell you that I'm compiling winbind with gcc 3.01 on hpux.  I
 compiled the getent program you sent me with.
 
 gcc -c -I. -g -O2 getent.c
 gcc -g getent.o -o getent
 
 From what you have said it would seem like libnss_winbind.so 
 itsn't working.
 Anyway to get any debug output?
 
 Here is my /usr/lib/libnss*
 
 -r-xr-xr-x   1 binbin  28672 Mar 13  2001 
 libnss_compat.1
 -r-xr-xr-x   1 binbin 104536 Nov  6  1997 libnss_dns.1
 -r-xr-xr-x   1 binbin  40960 Mar  7  2001 
 libnss_files.1
 lrwxrwxrwx   1 root   sys 17 Jan 27 09:49 
 libnss_ldap.1 -
 libns
 s_winbind.so
 -r-xr-xr-x   1 binbin  40960 Mar 13  2001 libnss_nis.1
 -r-xr-xr-x   1 binbin  57344 Mar 13  2001 
 libnss_nisplus.1
 -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
 libnss_winbind.so
 lrwxrwxrwx   1 root   sys 17 Jan 27 11:51
 libnss_winbind.so.1 -
  libnss_winbind.so
 lrwxrwxrwx   1 root   sys 17 Oct 15 16:14
 libnss_winbind.so.2 -
  libnss_winbind.so
 
 Here is my /etc/nsswitch.conf
 
 hosts: dns [NOTFOUND=continue UNAVAIL=continue 
 TRYAGAIN=continue] files
 [N
 OTFOUND=return UNAVAIL=continue TRYAGAIN=return]
 passwd: files winbind
 group: files winbind
 
 Here is the compile output from libnss_winbind.so
 
 Compiling nsswitch/winbind_nss.c with -fpic
 nsswitch/winbind_nss.c: In function `fill_pwent':
 nsswitch/winbind_nss.c:600: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:612: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:629: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:641: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:653: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `fill_grent':
 nsswitch/winbind_nss.c:690: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:702: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:728: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:753: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getpwent_r':
 nsswitch/winbind_nss.c:870: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible

RE: Winbind on HPUX 11, some small progress

2003-02-06 Thread Miles Roper
so where to from now?

do you think it would be useful to install the compiled one for HPUX one
from samba ftp?

just a note, I've been tring to get this to work for at least a year, since
winbind was first included in winbind, this time I'm determined I'm going to
get it working :o)

-Original Message-
From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 09:37 a.m.
To: 'Miles Roper'; MCCALL,DON (HP-USA,ex1);
[EMAIL PROTECTED]; '[EMAIL PROTECTED]'; 'Esh, Andrew';
'Ronan Waide'; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard Sharpe';
'John H Terpstra'; GILCHRIST,KIM (HP-NewZealand,ex1)
Subject: RE: Winbind on HPUX 11, some small progress


ps, the fact that get getpwent and getent programs that you are running do
NOT 
return any output indicate that the issue is probably with the
libnss_winbind.so
on your system..
Don

 -Original Message-
 From: Miles Roper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 15:31
 To: 'MCCALL,DON (HP-USA,ex1)'; [EMAIL PROTECTED];
 '[EMAIL PROTECTED]'; 'Esh, Andrew'; 'Ronan Waide';
 [EMAIL PROTECTED]; 'Richard Sharpe'; 'John H Terpstra';
 GILCHRIST,KIM (HP-NewZealand,ex1)
 Subject: RE: Winbind on HPUX 11, some small progress
 
 
 Hi Don,
 
 Michael Steffens a while back sent me a compiled version of 
 getent which I
 couldn't get to work.
 
 I compiled your version and it doesn't seem to produce any 
 result either,
 seems to return immeditaly without doing anything.
 
 ie
 coastdr: /mnt/1/samba/test ./getent passwd WESTCOASTDHB+mroper
 coastdr: /mnt/1/samba/test
 
 If I run it without any parameters I get a core dump :o)
 
 Better tell you that I'm compiling winbind with gcc 3.01 on hpux.  I
 compiled the getent program you sent me with.
 
 gcc -c -I. -g -O2 getent.c
 gcc -g getent.o -o getent
 
 From what you have said it would seem like libnss_winbind.so 
 itsn't working.
 Anyway to get any debug output?
 
 Here is my /usr/lib/libnss*
 
 -r-xr-xr-x   1 binbin  28672 Mar 13  2001 
 libnss_compat.1
 -r-xr-xr-x   1 binbin 104536 Nov  6  1997 libnss_dns.1
 -r-xr-xr-x   1 binbin  40960 Mar  7  2001 
 libnss_files.1
 lrwxrwxrwx   1 root   sys 17 Jan 27 09:49 
 libnss_ldap.1 -
 libns
 s_winbind.so
 -r-xr-xr-x   1 binbin  40960 Mar 13  2001 libnss_nis.1
 -r-xr-xr-x   1 binbin  57344 Mar 13  2001 
 libnss_nisplus.1
 -r-xr-xr-x   1 binbin  28672 Jan 24 15:23 
 libnss_winbind.so
 lrwxrwxrwx   1 root   sys 17 Jan 27 11:51
 libnss_winbind.so.1 -
  libnss_winbind.so
 lrwxrwxrwx   1 root   sys 17 Oct 15 16:14
 libnss_winbind.so.2 -
  libnss_winbind.so
 
 Here is my /etc/nsswitch.conf
 
 hosts: dns [NOTFOUND=continue UNAVAIL=continue 
 TRYAGAIN=continue] files
 [N
 OTFOUND=return UNAVAIL=continue TRYAGAIN=return]
 passwd: files winbind
 group: files winbind
 
 Here is the compile output from libnss_winbind.so
 
 Compiling nsswitch/winbind_nss.c with -fpic
 nsswitch/winbind_nss.c: In function `fill_pwent':
 nsswitch/winbind_nss.c:600: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:612: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:629: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:641: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:653: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `fill_grent':
 nsswitch/winbind_nss.c:690: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:702: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:728: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c:753: warning: passing arg 2 of 
 `get_static' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getpwent_r':
 nsswitch/winbind_nss.c:870: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getpwuid_r':
 nsswitch/winbind_nss.c:920: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible pointer type
 nsswitch/winbind_nss.c:933: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getpwnam_r':
 nsswitch/winbind_nss.c:982: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible pointer type
 nsswitch/winbind_nss.c:995: warning: passing arg 4 of 
 `fill_pwent' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getgrent_r':
 nsswitch/winbind_nss.c:1119: warning: passing arg 5 of 
 `fill_grent' from
 incompatible pointer type
 nsswitch/winbind_nss.c: In function `_nss_winbind_getgrnam_r':
 nsswitch