[Samba] Back to 3.0.1, Winbind and Solaris 9
Ganguly, Sapan
Sapan.Ganguly at thalesgroup.com
Thu Jan 29 14:44:34 GMT 2004
OK, I've checked that, my libraries are 32 bit.
I've just had a look at my config.log, here are just a few of the errors in
it, I did a search on google but the general opinion seems to be that they
don't matter?! Is that true?
In file included from configure:5267:
/usr/include/net/if.h:231: error: field `ifa_addr' has incomplete type
/usr/include/net/if.h:233: error: field `ifu_broadaddr' has incomplete type
/usr/include/net/if.h:234: error: field `ifu_dstaddr' has incomplete type
/usr/include/net/if.h:266: error: field `lnr_addr' has incomplete type
/usr/include/net/if.h:335: error: field `lifru_addr' has incomplete type
/usr/include/net/if.h:336: error: field `lifru_dstaddr' has incomplete type
/usr/include/net/if.h:337: error: field `lifru_broadaddr' has incomplete
type
/usr/include/net/if.h:338: error: field `lifru_token' has incomplete type
/usr/include/net/if.h:339: error: field `lifru_subnet' has incomplete type
/usr/include/net/if.h:378: error: field `sa_addr' has incomplete type
/usr/include/net/if.h:388: error: field `slr_src' has incomplete type
/usr/include/net/if.h:389: error: field `slr_grp' has incomplete type
/usr/include/net/if.h:408: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:409: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:411: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:479: error: parse error before "sa_family_t"
/usr/include/net/if.h:482: error: parse error before '}' token
/usr/include/net/if.h:492: error: parse error before "sa_family_t"
/usr/include/net/if.h:501: error: parse error before '}' token
/usr/include/net/if.h:632: error: field `ifta_saddr' has incomplete type
/usr/include/net/if.h:633: error: field `ifta_daddr' has incomplete type
configure:5303: WARNING: net/if.h: present but cannot be compiled
configure:5305: WARNING: net/if.h: check for missing prerequisite headers?
configure:5307: WARNING: net/if.h: proceeding with the preprocessor's result
configure:5310: checking for net/if.h
#include <sys/priv.h>
configure:5615: result: no
configure:5619: checking sys/priv.h presence
configure:5626: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
conftest.c
configure:5622:22: sys/priv.h: No such file or directory
configure:5632: $? = 1
configure: failed program was:
#line 5621 "configure"
configure:5942: checking security/pam_modules.h usability
configure:5951: gcc -c -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
conftest.c >&5
In file included from configure:5979:
/usr/include/security/pam_modules.h:17: error: parse error before '*' token
/usr/include/security/pam_modules.h:24: error: parse error before '*' token
/usr/include/security/pam_modules.h:31: error: parse error before '*' token
/usr/include/security/pam_modules.h:38: error: parse error before '*' token
/usr/include/security/pam_modules.h:45: error: parse error before '*' token
/usr/include/security/pam_modules.h:59: error: parse error before '*' token
/usr/include/security/pam_modules.h:71: error: parse error before '*' token
/usr/include/security/pam_modules.h:74: error: parse error before '*' token
/usr/include/security/pam_modules.h:83: error: parse error before '*' token
configure:5954: $? = 1
configure: failed program was:
#line 5944 "configure"
#include <security/pam_modules.h>
configure:5969: result: no
configure:5973: checking security/pam_modules.h presence
configure:5980: gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
conftest.c
configure:5986: $? = 0
configure:6004: result: yes
configure:6015: WARNING: security/pam_modules.h: present but cannot be
compiled
configure:6017: WARNING: security/pam_modules.h: check for missing
prerequisite headers?
configure:6019: WARNING: security/pam_modules.h: proceeding with the
preprocessor's result
configure:6022: checking for security/pam_modules.h
configure:6029: result: yes
configure:5942: checking security/_pam_macros.h usability
configure:5951: gcc -c -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
conftest.c >&5
configure:5979:34: security/_pam_macros.h: No such file or directory
configure:5954: $? = 1
configure: failed program was:
#line 5944 "configure"
-----Original Message-----
From: Patrik Gustavsson [mailto:Patrik.Gustavsson at Sun.COM]
Sent: 29 January 2004 14:07
To: Ganguly, Sapan
Cc: 'Samba'; 'richard.huber at sun.com'
Subject: RE: [Samba] Back to 3.0.1, Winbind and Solaris 9
/lib is symlink to /usr/lib
The 32 bits pam libs are installed in /usr/lib/security and 64 bits are
installed in /usr/lib/security/sparcv9
If you want to know if your libs are 32 or 64 bits, run file command,
# file /usr/lib/security/pam_winbind.so.1
/usr/lib/security/pam_winbind.so.1: ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, not stripped
# file /usr/lib/security/sparcv9/pam_unix.so.1
/usr/lib/security/sparcv9/pam_unix.so.1: ELF 64-bit MSB dynamic
lib SPARCV9 Version 1, dynamically linked, not stripped
I think the compiler is compiling 32 bits by default.
/Patrik
On Thu, 2004-01-29 at 14:31, Ganguly, Sapan wrote:
> Ah, I compiled with gcc 3.3.2. My machine is an Enterprise 220R so I
> guess I would have compiled in 64 bit by default right? How do I
> force it to compile everything in 32 bit? I think I installed the OS
> to be compatible with 32 bit apps.
>
> I have the same symbolic links as you but what is
> /usr/lib/security/sparcv9 for?
>
> What is the difference between /usr/lib/security and /lib/security?
>
>
>
> -----Original Message-----
> From: Patrik Gustavsson [mailto:Patrik.Gustavsson at Sun.COM]
> Sent: 29 January 2004 12:46
> To: Ganguly, Sapan
> Cc: 'Patrik Gustavsson'; 'Samba'; 'richard.huber at sun.com'
> Subject: RE: [Samba] Back to 3.0.1, Winbind and Solaris 9
>
>
> Ok,
>
> Lets take a step back,
>
> I have used the pam.conf file on both 3.0.1 and 3.0.2rc1 and it works.
>
> The libraries is 32 bits and is installed in /usr/lib/security and has
> been compiled with gcc 3.2.3.
>
> The only thing I have changed is that Samba is compiling
> pam_winbind.so instead of pam_winbind.so.1, so I renamed
> pam_winbind.so to pam_winbind.so.1 in /usr/lib/security and created a
> symlink from pam_winbind.so to pam_winbind.so.1
>
> lrwxrwxrwx 1 root other 16 Jan 26 14:13 pam_winbind.so ->
> pam_winbind.so.1
> -rwxr-xr-x 1 root other 27904 Jan 28 15:25 pam_winbind.so.1
>
> /Patrik
> On Thu, 2004-01-29 at 12:29, Ganguly, Sapan wrote:
> > Hello Patrik,
> >
> > Yes, I used your pam.conf and I have the patch installed. I can't
> > think what else the problem could be.
> >
> > I can't see what happens after I type in my password. Pamlog looks
> > like this -
> >
> > Jan 29 11:28:27 sun001 login: [ID 634615 auth.debug]
> > pam_authtok_get:pam_sm_authenticate: flags = 0
> > Jan 29 11:28:31 sun001 login: [ID 378613 auth.debug] pam_dhkeys:
> > user
> > ganguly not found Jan 29 11:28:31 sun001 login: [ID 896952 auth.debug]
> > pam_unix_auth: entering
> > pam_sm_authenticate()
> > Jan 29 11:28:31 sun001 login: [ID 219349 auth.debug] pam_unix_auth:
> > user ganguly not found Jan 29 11:28:31 sun001 pam_winbind[1138]: [ID
> > 572310 auth.info] Verify user `ganguly'
> > Jan 29 11:28:31 sun001 pam_winbind[1138]: [ID 614614 auth.notice] user
> > 'ganguly' granted acces
> > Jan 29 11:28:31 sun001 login[1138]: [ID 509786 auth.debug] roles
> > pam_sm_authenticate, service = teln
> > et user = ganguly ruser = not set rhost = pc8723_w2k.uk.trt.thales
> >
> > It tells me that the user is granted access but then nothing
> > happens,
> > I don't get a shell even though I have an entry in smb.conf 'template
> > shell = /bin/bash'
> >
> > Strange huh?
> >
> > -----Original Message-----
> > From: Patrik Gustavsson [mailto:Patrik.Gustavsson at Sun.COM]
> > Sent: 29 January 2004 11:13
> > To: Ganguly, Sapan
> > Cc: 'Samba'; 'richard.huber at sun.com'; 'Patrik.Gustavsson at Sun.COM'
> > Subject: Re: [Samba] Back to 3.0.1, Winbind and Solaris 9
> >
> >
> > Did you use the pam.conf file I sent you ?
> >
> > I will attached again.
> >
> > Do you have patch 113476-08 or later installed ?
> >
> >
> > /Patrik
> > On Thu, 2004-01-29 at 11:26, Ganguly, Sapan wrote:
> > > I've gone back to 3.0.1 to try and get winbind to work with my
> > > Solaris
> > > 9 machine and NT4 domain. Everything works except user
> > > authentication. The wbinfo and getent commands do what they are
> > > supposed to.
> > >
> > > I've included a truss of 'su - ganguly'
> > >
> > > According to pamlog, the user 'ganguly' has been granted access
> > > but
> > > it
> > > is still hanging.
> > >
> > > How do I do a truss of a telnet login?
> > >
> > > I'm hoping some one out there is good with Solaris.
> > >
> > > Can you help?
> > >
> > > Thanks,
> > > Sapan
> > >
> > >
> > > __________________________________________________________________
> > > __
> > > __
> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: http://lists.samba.org/mailman/listinfo/samba
> --
> "In a world without fences who needs Gates"
> Patrik Gustavsson, Senior Technical Consultant
> patrik.gustavsson at sun.com Telephone: +46 60 671540
> http://glen.sweden Mobile: +46 70 3551040
> SUN MICROSYSTEMS Fax: +46 60 671550
> --------------------------------------------------------------
--
"In a world without fences who needs Gates"
Patrik Gustavsson, Senior Technical Consultant
patrik.gustavsson at sun.com Telephone: +46 60 671540
http://glen.sweden Mobile: +46 70 3551040
SUN MICROSYSTEMS Fax: +46 60 671550
--------------------------------------------------------------
More information about the samba
mailing list