Re: [gentoo-user] Samba encrypted passwords will not work with Gentoo

2003-11-04 Thread Alan Watson
Hi Marshall,

Thanks for your advice - just to finish the thread ..

I re-emerged Samba as you suggested with USE="-ldap" emerge samba

and got the message below when the compile finished:

* GNU info directory index is up-to-date.
* IMPORTANT: 1 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.

I ran "find /etc -iname '._cfg_*' as suggested by emerge --help config
which found a file called /etc/init.d/._cfg_winbind. I overwrote
/etc/init.d/winbind in this directory with /etc/init.d/._cfg_winbind and
everything seems to be running fine.

Thanks,

Alan

- Original Message - 
From: "Andrew Heberle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 2:45 PM
Subject: Re: [gentoo-user] Samba encrypted passwords will not work with
Gentoo


> Alan Watson wrote:
> > Hi Marshall,
> >
> > Thanks -- no I don't need it. So how do I turn it off..?
> >
> > Alan
>
> Samba makes use of LDAP if the ldap USE flag is set, once it is compiled
> with LDAP support you cannot turn it off without a recompile.
>
> So either edit make.conf and remove ldap from your USE flags, the
> re-emerge samba or re-emerge samba with the following command:
>
> # USE="-ldap" emerge samba
>
> This will just disable LDAP support while building samba.
>
>
> -- 
> Andrew Heberle
>
> Whenever anyone says, "theoretically," they really mean, "not really."
> -- Dave Parnas
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba encrypted passwords will not work with Gentoo

2003-11-03 Thread Paul Stear
Please only send text mails to this list

On Mon 3 November 2003 00:35, Alan Watson wrote:
> I am having problems getting Samba to use encrypted passwords on Gentoo. I
> have tried all the normal resources (read samba mailing lists) with no
> success. I'm not completely new to the programme having run it previously
> on an earlier version of Caldera Linux. But obviously without ldap.
>
> After creating my password file with:
>
> cat /etc/passwd | mksmbpasswd.sh > /etc/samba/private/smbpasswd
>
> After running the command I then tried to set up my users with:
>
> smbpasswd [username]
>
> I get the response - New SMB password - which I enter (twice to confirm).
>
> But instead of completing I get the errors:
>
> LDAPS option set...!
>
> fetch_ldap_pw: no ldap secret retrieved!
>
> ldap_connect_system: Failed to retrieve password for from secrets.tdb
>
> Failed to find entry for user [username]
>
> Failed to modify password entry for user [username]
>
> Any help would be appreciated.
>
> Thanks,
>
> Alan

-- 

-- This message was sent using gentoo linux and kmail --


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba encrypted passwords will not work with Gentoo

2003-11-02 Thread Andrew Heberle
Alan Watson wrote:
Hi Marshall,

Thanks -- no I don't need it. So how do I turn it off..?

Alan
Samba makes use of LDAP if the ldap USE flag is set, once it is compiled 
with LDAP support you cannot turn it off without a recompile.

So either edit make.conf and remove ldap from your USE flags, the 
re-emerge samba or re-emerge samba with the following command:

# USE="-ldap" emerge samba

This will just disable LDAP support while building samba.

--
Andrew Heberle
Whenever anyone says, "theoretically," they really mean, "not really."
-- Dave Parnas
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Samba encrypted passwords will not work with Gentoo

2003-11-02 Thread Alan Watson
Hi Marshall,

Thanks -- no I don't need it. So how do I turn it off..?

Alan
- Original Message - 
From: "Marshal Newrock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 11:38 AM
Subject: Re: [gentoo-user] Samba encrypted passwords will not work with
Gentoo


> I see two things:
>
> First, you're not binding to the LDAP server to set the passwords.  You
> don't have a bindpw set (no secret retrieved).
>
> Second, you're mixing local files with ldap.  You've created
> /etc/samba/private/smbpasswd, but the smbpasswd program wants to set
> passwords in LDAP.
>
> If you don't need LDAP, don't use it.  It's certainly possible to set up
> and use with Samba, but it can be complicated.
>
>
> On Mon, 3 Nov 2003, Alan Watson wrote:
>
> > I am having problems getting Samba to use encrypted passwords on Gentoo.
> > I have tried all the normal resources (read samba mailing lists) with no
> > success. I'm not completely new to the programme having run it
> > previously on an earlier version of Caldera Linux. But obviously without
> > ldap.
> >
> > After creating my password file with:
> >
> > cat /etc/passwd | mksmbpasswd.sh > /etc/samba/private/smbpasswd
> >
> > After running the command I then tried to set up my users with:
> >
> > smbpasswd [username]
> >
> > I get the response - New SMB password - which I enter (twice to
confirm).
> >
> > But instead of completing I get the errors:
> >
> > LDAPS option set...!
> >
> > fetch_ldap_pw: no ldap secret retrieved!
> >
> > ldap_connect_system: Failed to retrieve password for from secrets.tdb
> >
> > Failed to find entry for user [username]
> >
> > Failed to modify password entry for user [username]
>
> -- 
> Caution: Product will be hot after heating
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba encrypted passwords will not work with Gentoo

2003-11-02 Thread Marshal Newrock
I see two things:

First, you're not binding to the LDAP server to set the passwords.  You
don't have a bindpw set (no secret retrieved).

Second, you're mixing local files with ldap.  You've created
/etc/samba/private/smbpasswd, but the smbpasswd program wants to set
passwords in LDAP.

If you don't need LDAP, don't use it.  It's certainly possible to set up
and use with Samba, but it can be complicated.


On Mon, 3 Nov 2003, Alan Watson wrote:

> I am having problems getting Samba to use encrypted passwords on Gentoo.
> I have tried all the normal resources (read samba mailing lists) with no
> success. I'm not completely new to the programme having run it
> previously on an earlier version of Caldera Linux. But obviously without
> ldap.
>
> After creating my password file with:
>
> cat /etc/passwd | mksmbpasswd.sh > /etc/samba/private/smbpasswd
>
> After running the command I then tried to set up my users with:
>
> smbpasswd [username]
>
> I get the response - New SMB password - which I enter (twice to confirm).
>
> But instead of completing I get the errors:
>
> LDAPS option set...!
>
> fetch_ldap_pw: no ldap secret retrieved!
>
> ldap_connect_system: Failed to retrieve password for from secrets.tdb
>
> Failed to find entry for user [username]
>
> Failed to modify password entry for user [username]

-- 
Caution: Product will be hot after heating


--
[EMAIL PROTECTED] mailing list