Re: samba authentication problems

2003-08-14 Thread Lewis Thompson
On Mon, Aug 11, 2003 at 08:42:58AM -0700, John DeStefano wrote:
> [gandalf] ~# smbclient -L gandalf -U linuxbox
> added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
> can't determine netmask for 192.168.1.1

Did you specifically specify the interfaces to bind to in the smb.conf?

  Best wishes,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jab:[EMAIL PROTECTED] | url:http://lewiz.net |-


pgp0.pgp
Description: PGP signature


Re: samba authentication problems

2003-08-14 Thread John DeStefano
Hi Tim and lewiz~
Thanks for these ideas.  They definitely helped, and have alleviated
some of the problem.  I can now do 'smbpasswd' without an error.  But
I'm still getting a non-LDAP auth. error; see below:
=
[gandalf] ~# smbpasswd -a linuxbox
New SMB password:
Retype new SMB password:
Password changed for user linuxbox.
[gandalf] ~# smbclient -L gandalf -U linuxbox
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
can't determine netmask for 192.168.1.1
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
=
As you can see, something is wacky with the IP interface. 192.168.1.1
is the IP of my router/gateway (Linksys router)  The FBSD box (gandalf)
is 192.168.1.102.  When I try to connect to the IP itself instead of
the hostname, it times out:
=
[gandalf] ~# smbclient -L 192.18.1.102 -U linuxbox
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
can't determine netmask for 192.168.1.1
  <... delay ...>
timeout connecting to 192.18.1.102:139
Error connecting to 192.18.1.102 (Operation already in progress)
Connection to 192.18.1.102 failed
=
Yet the box is (I think) properly connected to the Internet; in fact,
I'm performing these commands from work via ssh.  Here's what ifconfig
says:
=
[gandalf] ~# ifconfig -a
dc0: flags=8843 mtu 1500
inet6 fe80::800:aff:fe00:a00%dc0 prefixlen 64 scopeid 0x1
inet 192.168.1.102 netmask 0xff00 broadcast 192.168.1.255
ether 0a:00:0a:00:0a:00
media: Ethernet autoselect (100baseTX )
status: active
lp0: flags=8810 mtu 1500
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
=
Any ideas???
Thanks very much,
~John

--- T Kellers <[EMAIL PROTECTED]> wrote:
> Did you do a make clean before the make re-install?
> If not, it's reading the original config.
> 
> try: 
> 
> # make deinstall && make clean && make build install
> 
> Just a thought, just in case
> 
> Tim Kellers
> CPE/NJIT
> 
> 
> On Thursday 07 August 2003 02:11 pm, John DeStefano wrote:
> >>Lewis Thompson <[EMAIL PROTECTED]> wrote:On Thu, Aug 07, 2003 at
> >>
> >>06:49:49AM -0700, John DeStefano wrote:
> >>> AFAIK, I have not enabled ldap authentication. But how do I
> >>> confirm?
> >>
> >>Well. If it's 2.2.8a then it's defined at compile time (i.e., you
> >>specify you want it, or it autodetects if openldap is installed).
> >
> >Otoh,
> >
> >>if it's samba-devel (3.0.0b2) then you can modify the behaviour
> with
> >>the passdb backend smb.conf setting.
> >
> >I'm using 2.2.8a.  I've now done a 'make install' after 'make
> >deinstall' twice, with the same results both times, so I can only
> >assume the installation is autodetecting openldap, as you suspected
> >above.
> >
> >>Chances are it's 2.2.8a and you'll need to recompile, unless you
> >>/want/ to use LDAP.
> >
> >Searched the handbook and FAQ, but nothing helpful there on ldap,
> let
> >alone ldap and samba.  Google produced a slew of unanswered mail
> >archive questions.  I don't care one way or the other whether to use
> >ldap or not; I just want samba to work!  Any recommendations?
> >
> >>Best wishes,
> >>-lewiz.
> >
> >Thanks,
> >~John
> >
> >__
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >http://sitebuilder.yahoo.com
> >___
> >[EMAIL PROTECTED] mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba authentication problems

2003-08-14 Thread Stacey Roberts
Hello,

On Thu, 2003-08-07 at 19:11, John DeStefano wrote:
> >Lewis Thompson <[EMAIL PROTECTED]> wrote:On Thu, Aug 07, 2003 at
> >06:49:49AM -0700, John DeStefano wrote:
> >> AFAIK, I have not enabled ldap authentication. But how do I 
> >> confirm?
> >
> >Well. If it's 2.2.8a then it's defined at compile time (i.e., you
> >specify you want it, or it autodetects if openldap is installed).
> Otoh,
> >if it's samba-devel (3.0.0b2) then you can modify the behaviour with
> >the passdb backend smb.conf setting.
> >
> I'm using 2.2.8a.  I've now done a 'make install' after 'make
> deinstall' twice, with the same results both times, so I can only
> assume the installation is autodetecting openldap, as you suspected
> above.
> 

Not sure if you've not tried this already, but check
/usr/ports/net/samba/scripts dir to see the configure script that runs
on initial install.

The have a look at the "work" dir to see if LDAP functionality has been
set. If it is, then need to actually delete the work dir before
reinstalling. Otherwise you'd only be reusing the same configure options
that were originally used - which I presume is the problem.

Regards,

Stacey

> >Chances are it's 2.2.8a and you'll need to recompile, unless you
> >/want/ to use LDAP.
> >
> Searched the handbook and FAQ, but nothing helpful there on ldap, let
> alone ldap and samba.  Google produced a slew of unanswered mail
> archive questions.  I don't care one way or the other whether to use
> ldap or not; I just want samba to work!  Any recommendations?
> 
> >Best wishes,
> >-lewiz.
> 
> Thanks,
> ~John
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba authentication problems

2003-08-12 Thread Lewis Thompson
On Thu, Aug 07, 2003 at 06:49:49AM -0700, John DeStefano wrote:
> AFAIK, I have not enabled ldap authentication.  But how do I 
> confirm?

Well.  If it's 2.2.8a then it's defined at compile time (i.e., you
specify you want it, or it autodetects if openldap is installed).  Otoh,
if it's samba-devel (3.0.0b2) then you can modify the behaviour with the
passdb backend smb.conf setting.

  Chances are it's 2.2.8a and you'll need to recompile, unless you
/want/ to use LDAP.

  Best wishes,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jab:[EMAIL PROTECTED] | url:http://lewiz.net |-


pgp0.pgp
Description: PGP signature


Re: samba authentication problems

2003-08-10 Thread Lewis Thompson
On Thu, Aug 07, 2003 at 11:11:58AM -0700, John DeStefano wrote:
> I'm using 2.2.8a.  I've now done a 'make install' after 'make
> deinstall' twice, with the same results both times, so I can only
> assume the installation is autodetecting openldap, as you suspected
> above.

I've had a look at the Makefile and it doesn't look like it auto
detects.  I really can't understand why it'd do this.  If you're
desperate to get it to work, you could just edit the Makefile and remove
the code enclosed within:

.if defined(WITH_LDAP)

and

.endif

and that'll sort the problem.  I can't stress enough that this isn't the
way to do it and you should maybe consider tracking down why it's not
compiling as expected.

  An alternate solution might just be to use samba-devel, which is
currently beta but I understand it's already very stable and usable.  If
it's production though, I'd still be wary of this route.

  Best wishes,

-lewiz.

P.S.
  Sorry for slow reply; I've been away for the day :)

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jab:[EMAIL PROTECTED] | url:http://lewiz.net |-


pgp0.pgp
Description: PGP signature


Re: samba authentication problems

2003-08-09 Thread T Kellers
Did you do a make clean before the make re-install?
If not, it's reading the original config.

try: 

# make deinstall && make clean && make build install

Just a thought, just in case

Tim Kellers
CPE/NJIT


On Thursday 07 August 2003 02:11 pm, John DeStefano wrote:
>>Lewis Thompson <[EMAIL PROTECTED]> wrote:On Thu, Aug 07, 2003 at
>>
>>06:49:49AM -0700, John DeStefano wrote:
>>> AFAIK, I have not enabled ldap authentication. But how do I
>>> confirm?
>>
>>Well. If it's 2.2.8a then it's defined at compile time (i.e., you
>>specify you want it, or it autodetects if openldap is installed).
>
>Otoh,
>
>>if it's samba-devel (3.0.0b2) then you can modify the behaviour with
>>the passdb backend smb.conf setting.
>
>I'm using 2.2.8a.  I've now done a 'make install' after 'make
>deinstall' twice, with the same results both times, so I can only
>assume the installation is autodetecting openldap, as you suspected
>above.
>
>>Chances are it's 2.2.8a and you'll need to recompile, unless you
>>/want/ to use LDAP.
>
>Searched the handbook and FAQ, but nothing helpful there on ldap, let
>alone ldap and samba.  Google produced a slew of unanswered mail
>archive questions.  I don't care one way or the other whether to use
>ldap or not; I just want samba to work!  Any recommendations?
>
>>Best wishes,
>>-lewiz.
>
>Thanks,
>~John
>
>__
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>___
>[EMAIL PROTECTED] mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba authentication problems

2003-08-07 Thread John DeStefano
>Lewis Thompson <[EMAIL PROTECTED]> wrote:On Thu, Aug 07, 2003 at
>06:49:49AM -0700, John DeStefano wrote:
>> AFAIK, I have not enabled ldap authentication. But how do I 
>> confirm?
>
>Well. If it's 2.2.8a then it's defined at compile time (i.e., you
>specify you want it, or it autodetects if openldap is installed).
Otoh,
>if it's samba-devel (3.0.0b2) then you can modify the behaviour with
>the passdb backend smb.conf setting.
>
I'm using 2.2.8a.  I've now done a 'make install' after 'make
deinstall' twice, with the same results both times, so I can only
assume the installation is autodetecting openldap, as you suspected
above.

>Chances are it's 2.2.8a and you'll need to recompile, unless you
>/want/ to use LDAP.
>
Searched the handbook and FAQ, but nothing helpful there on ldap, let
alone ldap and samba.  Google produced a slew of unanswered mail
archive questions.  I don't care one way or the other whether to use
ldap or not; I just want samba to work!  Any recommendations?

>Best wishes,
>-lewiz.

Thanks,
~John

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"