Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-07 Thread Eric J. Feldhusen

Natxo Asenjo wrote:

On 3/4/06, John H Terpstra <[EMAIL PROTECTED]> wrote:

I'd be delighted if someone steps forward with an offer to take over
responsibility for maintenance and improvement of the documentation. Its
about time for a more capable and more enthusiastic person to have a go.
Please allow me rush to step aside. :-)


for what it's worth: THANKS!!! for all your efforts with this documentation.
I bought the book, I know of lots of people who have working samba domains
thanks to your work.

Will you write such a piece for the new samba version? I truly hope so,
although if you do not I will certainly understand and respect your
decision.

And again: thanks a lot for your work.


Agreed, I can't say thanks enough. I've purchased both editions of the 
How-To and By-Example to support your efforts.  Both books match up with 
Samba for quality, and I'll continue to point people at both volumes for 
any Samba questions that come up.


Eric
--
Eric Feldhusen
System Administrator http://www.remc1.org
[EMAIL PROTECTED]
PO Box 270  (906) 482-4520  x239
809 Hecla St(906) 482-5031 fax
Hancock, MI  49930  (906) 370 6202 mobile
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-07 Thread Natxo Asenjo
On 3/4/06, John H Terpstra <[EMAIL PROTECTED]> wrote:
>
>
> I'd be delighted if someone steps forward with an offer to take over
> responsibility for maintenance and improvement of the documentation. Its
> about time for a more capable and more enthusiastic person to have a go.
> Please allow me rush to step aside. :-)
>

for what it's worth: THANKS!!! for all your efforts with this documentation.
I bought the book, I know of lots of people who have working samba domains
thanks to your work.

Will you write such a piece for the new samba version? I truly hope so,
although if you do not I will certainly understand and respect your
decision.

And again: thanks a lot for your work.
--
Groeten,
J.Asenjo
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-03 Thread John H Terpstra
On Thursday 02 March 2006 23:15, Craig White wrote:
> On Thu, 2006-03-02 at 22:38 -0600, John H Terpstra wrote:
> > > I think you should follow Craig's advice, get your hands on a copy of
> > > "LDAP System Administration", and go through it carefully.  LDAP is a
> > > wonderful enabling technology, but if you don't understand how it
> > > works, you'll get terrible performance, and risk exposing private data.
> >
> > I have no argument with this advice - but please be careful that you do
> > not needlessly scare people off from using LDAP.
>
> 
> I was wondering if you dropped off the face of this planet since I knew
> you wouldn't take his commentary well.

I started employment with AMD in January based in Austin, Texas. I've been 
very much swamped since December. I'll get back to the documentation when I 
come up for oxygen.

> My biggest concern isn't necessarily for performance or exposing data as
> much as having a user who relies upon a technology that provides
> essential user/group authentication services as well as configuration
> information and can neither comprehend nor maintain it and when you know
> what hits the fan, that user is ill equipped to solve the problem.
>
> No one should be scared away from using LDAP and the samba documentation
> clearly gives enough information to permit someone to integrate samba in
> an LDAP environment but the samba documentation doesn't suggest that you
> can use LDAP on your domain without getting a reasonably rounded
> education on using LDAP itself. Some people have that erroneous
> expectation.

I have received a number of emails from people who used the Samba 
documentation - some of it is rude and some is most appreciative. I can 
handle criticism if it is valid. 

The documentation is in open SVN. Anyone can contribute patches - and those 
who contribute get recognition for their work. When I released the 
documentation to public CVS, and then to SVN, I made a conscious decision to 
disown my own work. I want to encourage people to contribute improvements to 
the documentation. There have been a few contributions - but most people just 
like to poke holes even where they do not exist.

Samba3 by Example is not a book on LDAP. It has a well defined purpose and 
meets its goals. If anyone wishes to contribute systematic changes that 
converts the whole book to a new set of goals and objectives I will not 
object one bit. As far as I am concerned, the source is open and our users 
are far more experienced and much smarter than I am. Please, please make the 
problem go away if you feel inclined to do so. 

I'd be delighted if someone steps forward with an offer to take over 
responsibility for maintenance and improvement of the documentation. Its 
about time for a more capable and more enthusiastic person to have a go. 
Please allow me rush to step aside. :-)

Cheers,
John T.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->sambaadmin)

2006-03-03 Thread Craig White
On Sat, 2006-03-04 at 00:25 +1100, adrian sender wrote:
> Well I am glad that there has been alot of input on this topic, alot of 
> people are having different opinions but that is because we are not focusing 
> with the problem at hand.
> 
> The documentation provides full details on how to get samba + ldap working 
> from scratch; but there seems to be a gap between chapter 5 & 6;
> 
> Once again I will say I love this book; by far the best technical reference 
> manaual available for samba and highly recommend it.
> 
> Chapter 6, is it assumeing we are starting fresh here, because the ldap 
> database is placed in a different directory to what was in chapter 5 
> slapd.conf?
> 
> Questions;
> 
> 1. If it is assumeing that we are starting from scratch; all configuration 
> files are to that of the documentation - why will the database not populate 
> with the smbldap-tools using sambaadmin?
> 
> 2. If I change sambaadmin to Manager all works fine; is there anything wrong 
> with doing this.
> 
> 3. I am not interested in learning ldap and its complexities, otherwise I 
> would not have bothered using ldap, samba 3 by example provides simple steps 
> - however this step I am stuck with.
> 
> 4. A solution ?
> 
> For over a year now I have worked around this by using Manager in place of 
> sambaadmin - but it is time for me to get to the bottom of this so I can 
> start with another problem and  move on to testing samba4.
> 
> All your help and time is greatly appreciated.

the reason you can't get past it is inherent in your 'question 3' which
of course isn't a question at all.

If you aren't interested in learning LDAP - don't use it. Perhaps with
Samba 4, you can use LDAP without knowing a thing about it much as you
can in a Windows AD but definitely not Samba 3 and OpenLDAP - there is
no close my eyes and hope it works scenario that is going to work
because the worst thing you can ever do is get lucky and make it work
and then depend upon it to work because it will break and you won't be
able to fix it.

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->sambaadmin)

2006-03-03 Thread adrian sender
Well I am glad that there has been alot of input on this topic, alot of 
people are having different opinions but that is because we are not focusing 
with the problem at hand.


The documentation provides full details on how to get samba + ldap working 
from scratch; but there seems to be a gap between chapter 5 & 6;


Once again I will say I love this book; by far the best technical reference 
manaual available for samba and highly recommend it.


Chapter 6, is it assumeing we are starting fresh here, because the ldap 
database is placed in a different directory to what was in chapter 5 
slapd.conf?


Questions;

1. If it is assumeing that we are starting from scratch; all configuration 
files are to that of the documentation - why will the database not populate 
with the smbldap-tools using sambaadmin?


2. If I change sambaadmin to Manager all works fine; is there anything wrong 
with doing this.


3. I am not interested in learning ldap and its complexities, otherwise I 
would not have bothered using ldap, samba 3 by example provides simple steps 
- however this step I am stuck with.


4. A solution ?

For over a year now I have worked around this by using Manager in place of 
sambaadmin - but it is time for me to get to the bottom of this so I can 
start with another problem and  move on to testing samba4.


All your help and time is greatly appreciated.


Thanks.
Adrian.



From: "adrian sender" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager 
->sambaadmin)

Date: Fri, 03 Mar 2006 11:49:25 +1100
I have this in my slap.conf as per the docs;


access to attrs=sambaLMPassword,sambaNTPassword
  by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
  by * none

Should that work?



From: "Yanick Durant" <[EMAIL PROTECTED]>
To: "adrian sender" <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->  
sambaadmin)

Date: Thu, 2 Mar 2006 09:49:19 +0100 (CET)

You need to give enough rights to your "sambaadmin" to allow him to write
to the ldap repository for adding users, and updating information.

Ie :

This kind of access rule inside your slapd.conf these line need to be
after the database tag in the config file.
This will also allow user to change their password

access to attr=userPassword,sambaLMPassword,sambaNTPassword
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by anonymous auth
by * none

# The admin dn has full write access
access to *
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by * read

Regards,

Yanick Durant


> I will try to explain my situtation a little better so other can
> understand.
>
> I am sticking to the documentation, (samba 3 by example by jht) 
excellent

> book!;
>
> So here is where I am at;
>
> I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as 
per

> the documentation chapter 6.
>
> I do have a bdc; however there is no relivence to that as I am only
> working
> on the PDC at the time;
>
> I have these commented out in the slapd.conf for the moment.
>
> #replica host=192.168.0.3:389
> #suffix="dc=tinistuff,dc=com"
> #binddn="cn=updateuser,dc=tinistuff,dc=com"
> #bindmethod=simple credentials=123456
>
> #replogfile  /var/lib/ldap/replogfile
>
>
> This is my smb.conf as per chapter 6;
> ***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***
>
> ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com
>
> [EMAIL PROTECTED] sbin]# smbpasswd -w 123456
> Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in
> secrets.tdb
>
> Does this look right so far; I am now going to configure smbldaptools 
as

> per
> the documentation; In chapter 5 (./configure)
>
> Ok, now we take a look at this -
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
>
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading
> access
> # By default, we will use the same DN (so it will work for standard 
Samba

> # release)
> slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
> masterPw="123456"
>
>
> Time to populate the ldap DB.
> [EMAIL PRO

Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread Gordon Messmer

John H Terpstra wrote:


Where were you when I asked for feedback and review? 


Beats me, man.  Working on something else. :)

When will you provide updates to the documentation that improve its real 
value?  


Huh... I hadn't considered that it'd be accepted.  Specifically, because 
of this note:


  Why did you not cover secure practices? Isn't it rather irresponsible
  to instruct network administrators to implement insecure solutions?
  ...
  I made the decision, right or wrong, to keep this material as simple
  as possible. The intent of this book is to demonstrate a working
  solution and not to discuss too many peripheral issues.

It really bothers me to see any reference material treat security as an 
exercise for the reader.  It bothered me more because as far as I've 
been able to determine, there's no reference material available which 
discusses which of the samba attributes need to be hidden from public 
view, and which need to be protected from writing by "self".


Now, maybe my impression of the security practices you had in mind 
wasn't accurate.  If you're open to what I think would be improvements, 
I could send patches to the documentation.  I presume it's in CVS 
somewhere?  Let me know where to check it out.


I hope you are willing to contribute corrections and improvements and not just 
criticism. All contributions are most appreciated.


Awww... but criticism is what I've got the most of. ;)

Are you sure that chapter 5 does not provide clean-slate installation 
instructions that create a fully working LDAP directory that has been 
correctly populated?


Um, no.  You busted me.  I misread some of the docs, and then made an 
erroneous claim.  My mistake was reinforced by the expectation that 
Adrian had followed the documentation, which probably isn't the case. 
If it were, then the top level entries of his directory probably 
wouldn't be missing.



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread Craig White
On Thu, 2006-03-02 at 22:38 -0600, John H Terpstra wrote:
> >
> > I think you should follow Craig's advice, get your hands on a copy of
> > "LDAP System Administration", and go through it carefully.  LDAP is a
> > wonderful enabling technology, but if you don't understand how it works,
> > you'll get terrible performance, and risk exposing private data.
> 
> I have no argument with this advice - but please be careful that you do not 
> needlessly scare people off from using LDAP.
> 

I was wondering if you dropped off the face of this planet since I knew
you wouldn't take his commentary well.

My biggest concern isn't necessarily for performance or exposing data as
much as having a user who relies upon a technology that provides
essential user/group authentication services as well as configuration
information and can neither comprehend nor maintain it and when you know
what hits the fan, that user is ill equipped to solve the problem.

No one should be scared away from using LDAP and the samba documentation
clearly gives enough information to permit someone to integrate samba in
an LDAP environment but the samba documentation doesn't suggest that you
can use LDAP on your domain without getting a reasonably rounded
education on using LDAP itself. Some people have that erroneous
expectation.

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread John H Terpstra
On Thursday 02 March 2006 01:38, Gordon Messmer wrote:
> adrian sender wrote:
> > I am sticking to the documentation, (samba 3 by example by jht)
> > excellent book!;
>
> Yes, it's an excellent book.  I have a copy, myself.  However, you won't
> get anywhere "sticking to" its LDAP documentation.
>
> The LDAP documentation in "Samba-3 by Example" is BAD.  Very bad.  It
> completely abrogates any discussion of security as a matter that the
> user should be expert enough to handle, and gives example configuration
> files that are completely open to attack.  It would have been better to
> ignore the LDAP server's configuration entirely and explicitly state
> that admins are expected to be able to do it on their own.

Where were you when I asked for feedback and review? 

When will you provide updates to the documentation that improve its real 
value?  

I hope you are willing to contribute corrections and improvements and not just 
criticism. All contributions are most appreciated.

> Further, "Samba-3 by Example" assumes that you have a working directory,
> to begin with.  Using OpenLDAP, you must create the containers (using

Please explain this claim? 

Where does chapter 5 of "Samba-3 by Example" make that assumption?

Are you sure that chapter 5 does not provide clean-slate installation 
instructions that create a fully working LDAP directory that has been 
correctly populated?

> slapadd, or ldapadd and the "rootdn") before you can bind and populate
> the directory with other tools.  This is covered in the quickstart guide:
> http://www.openldap.org/doc/admin23/quickstart.html
>
> I think you should follow Craig's advice, get your hands on a copy of
> "LDAP System Administration", and go through it carefully.  LDAP is a
> wonderful enabling technology, but if you don't understand how it works,
> you'll get terrible performance, and risk exposing private data.

I have no argument with this advice - but please be careful that you do not 
needlessly scare people off from using LDAP.

- John T.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread Craig White
you are gonna need to add 'self write' to your ACL's for users to login.

You probably should follow Yanick's very simple ACL's at first - just to
get you started but you aren't going to learn ACL's from samba

Craig

On Fri, 2006-03-03 at 11:49 +1100, adrian sender wrote:
> I have this in my slap.conf as per the docs;
> 
> 
> access to attrs=sambaLMPassword,sambaNTPassword
>by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
>by * none
> 
> Should that work?
> 
> 
> >From: "Yanick Durant" <[EMAIL PROTECTED]>
> >To: "adrian sender" <[EMAIL PROTECTED]>
> >CC: samba@lists.samba.org
> >Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->  
> >sambaadmin)
> >Date: Thu, 2 Mar 2006 09:49:19 +0100 (CET)
> >
> >You need to give enough rights to your "sambaadmin" to allow him to write
> >to the ldap repository for adding users, and updating information.
> >
> >Ie :
> >
> >This kind of access rule inside your slapd.conf these line need to be
> >after the database tag in the config file.
> >This will also allow user to change their password
> >
> >access to attr=userPassword,sambaLMPassword,sambaNTPassword
> > by self write
> > by dn="cn=Manager,dc=tinistuff,dc=com" write
> > by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
> > by anonymous auth
> > by * none
> >
> ># The admin dn has full write access
> >access to *
> > by self write
> > by dn="cn=Manager,dc=tinistuff,dc=com" write
> > by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
> > by * read
> >
> >Regards,
> >
> >Yanick Durant
> >
> >
> > > I will try to explain my situtation a little better so other can
> > > understand.
> > >
> > > I am sticking to the documentation, (samba 3 by example by jht) 
> >excellent
> > > book!;
> > >
> > > So here is where I am at;
> > >
> > > I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as 
> >per
> > > the documentation chapter 6.
> > >
> > > I do have a bdc; however there is no relivence to that as I am only
> > > working
> > > on the PDC at the time;
> > >
> > > I have these commented out in the slapd.conf for the moment.
> > >
> > > #replica host=192.168.0.3:389
> > > #suffix="dc=tinistuff,dc=com"
> > > #binddn="cn=updateuser,dc=tinistuff,dc=com"
> > > #bindmethod=simple credentials=123456
> > >
> > > #replogfile  /var/lib/ldap/replogfile
> > >
> > >
> > > This is my smb.conf as per chapter 6;
> > > ***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***
> > >
> > > ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com
> > >
> > > [EMAIL PROTECTED] sbin]# smbpasswd -w 123456
> > > Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in
> > > secrets.tdb
> > >
> > > Does this look right so far; I am now going to configure smbldaptools as
> > > per
> > > the documentation; In chapter 5 (./configure)
> > >
> > > Ok, now we take a look at this -
> > > [EMAIL PROTECTED] sbin]# cat 
> > > /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
> > >
> > > 
> > > # Credential Configuration #
> > > 
> > > # Notes: you can specify two differents configuration if you use a
> > > # master ldap for writing access and a slave ldap server for reading
> > > access
> > > # By default, we will use the same DN (so it will work for standard 
> >Samba
> > > # release)
> > > slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
> > > slavePw="123456"
> > > masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
> > > masterPw="123456"
> > >
> > >
> > > Time to populate the ldap DB.
> > > [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
> > >
> > > This does not work because it cannot bind as "sambaadmin"
> > >
> > > If I change my smbldap_bind to Manager, I can populate the DB.
> > >
> > > [EMAIL PROTECTED] sbin]# cat 
> > > /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
> > >
> &g

Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread adrian sender

I have this in my slap.conf as per the docs;


access to attrs=sambaLMPassword,sambaNTPassword
  by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
  by * none

Should that work?



From: "Yanick Durant" <[EMAIL PROTECTED]>
To: "adrian sender" <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->  
sambaadmin)

Date: Thu, 2 Mar 2006 09:49:19 +0100 (CET)

You need to give enough rights to your "sambaadmin" to allow him to write
to the ldap repository for adding users, and updating information.

Ie :

This kind of access rule inside your slapd.conf these line need to be
after the database tag in the config file.
This will also allow user to change their password

access to attr=userPassword,sambaLMPassword,sambaNTPassword
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by anonymous auth
by * none

# The admin dn has full write access
access to *
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by * read

Regards,

Yanick Durant


> I will try to explain my situtation a little better so other can
> understand.
>
> I am sticking to the documentation, (samba 3 by example by jht) 
excellent

> book!;
>
> So here is where I am at;
>
> I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as 
per

> the documentation chapter 6.
>
> I do have a bdc; however there is no relivence to that as I am only
> working
> on the PDC at the time;
>
> I have these commented out in the slapd.conf for the moment.
>
> #replica host=192.168.0.3:389
> #suffix="dc=tinistuff,dc=com"
> #binddn="cn=updateuser,dc=tinistuff,dc=com"
> #bindmethod=simple credentials=123456
>
> #replogfile  /var/lib/ldap/replogfile
>
>
> This is my smb.conf as per chapter 6;
> ***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***
>
> ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com
>
> [EMAIL PROTECTED] sbin]# smbpasswd -w 123456
> Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in
> secrets.tdb
>
> Does this look right so far; I am now going to configure smbldaptools as
> per
> the documentation; In chapter 5 (./configure)
>
> Ok, now we take a look at this -
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
>
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading
> access
> # By default, we will use the same DN (so it will work for standard 
Samba

> # release)
> slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
> masterPw="123456"
>
>
> Time to populate the ldap DB.
> [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
>
> This does not work because it cannot bind as "sambaadmin"
>
> If I change my smbldap_bind to Manager, I can populate the DB.
>
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
>
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading
> access
> # By default, we will use the same DN (so it will work for standard 
Samba

> # release)
> slaveDN="cn=Manager,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=Manager,dc=tinistuff,dc=com"
> masterPw="123456"
>
> Now it populates fine.
>
> Is this a fault on my behalf, or is there something wrong with
> "sambaadmin"
> in the config files?
>
> PS - please forgive any spelling errors.
>
> Kind Regards,
> Adrian Sender.
>
>
>
>
>
>>From: Gordon Messmer <[EMAIL PROTECTED]>
>>To: adrian sender <[EMAIL PROTECTED]>,  samba
>> 
>>Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->
>>sambaadmin)
>>Date: Wed, 01 Mar 2006 08:13:32 -0800
>>
>>Well... you have to create the containers using slapdadd.  After the
>>containers are present, then you can populate them with users, etc, 
using

>>ldapadd or other tools.  If you haven't created the containers, nothi

Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-02 Thread Yanick Durant
You need to give enough rights to your "sambaadmin" to allow him to write
to the ldap repository for adding users, and updating information.

Ie :

This kind of access rule inside your slapd.conf these line need to be
after the database tag in the config file.
This will also allow user to change their password

access to attr=userPassword,sambaLMPassword,sambaNTPassword
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by anonymous auth
by * none

# The admin dn has full write access
access to *
by self write
by dn="cn=Manager,dc=tinistuff,dc=com" write
by dn="cn=sambaadmin,dc=tinistuff,dc=com" write
by * read

Regards,

Yanick Durant


> I will try to explain my situtation a little better so other can
> understand.
>
> I am sticking to the documentation, (samba 3 by example by jht) excellent
> book!;
>
> So here is where I am at;
>
> I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as per
> the documentation chapter 6.
>
> I do have a bdc; however there is no relivence to that as I am only
> working
> on the PDC at the time;
>
> I have these commented out in the slapd.conf for the moment.
>
> #replica host=192.168.0.3:389
> #suffix="dc=tinistuff,dc=com"
> #binddn="cn=updateuser,dc=tinistuff,dc=com"
> #bindmethod=simple credentials=123456
>
> #replogfile  /var/lib/ldap/replogfile
>
>
> This is my smb.conf as per chapter 6;
> ***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***
>
> ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com
>
> [EMAIL PROTECTED] sbin]# smbpasswd -w 123456
> Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in
> secrets.tdb
>
> Does this look right so far; I am now going to configure smbldaptools as
> per
> the documentation; In chapter 5 (./configure)
>
> Ok, now we take a look at this -
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
>
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading
> access
> # By default, we will use the same DN (so it will work for standard Samba
> # release)
> slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
> masterPw="123456"
>
>
> Time to populate the ldap DB.
> [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
>
> This does not work because it cannot bind as "sambaadmin"
>
> If I change my smbldap_bind to Manager, I can populate the DB.
>
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
>
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading
> access
> # By default, we will use the same DN (so it will work for standard Samba
> # release)
> slaveDN="cn=Manager,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=Manager,dc=tinistuff,dc=com"
> masterPw="123456"
>
> Now it populates fine.
>
> Is this a fault on my behalf, or is there something wrong with
> "sambaadmin"
> in the config files?
>
> PS - please forgive any spelling errors.
>
> Kind Regards,
> Adrian Sender.
>
>
>
>
>
>>From: Gordon Messmer <[EMAIL PROTECTED]>
>>To: adrian sender <[EMAIL PROTECTED]>,  samba
>> 
>>Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager ->
>>sambaadmin)
>>Date: Wed, 01 Mar 2006 08:13:32 -0800
>>
>>Well... you have to create the containers using slapdadd.  After the
>>containers are present, then you can populate them with users, etc, using
>>ldapadd or other tools.  If you haven't created the containers, nothing
>> is
>>going to work.
>>
>>
>>
>>adrian sender wrote:
>>>The database has not been populated, and cannot be populated using
>>>"sambaadmin"
>>>
>>>
>>>
>>>>From: Gordon Messmer <[EMAIL PROTECTED]>
>>>>To: adrian sender <[EMAIL PROTECTED]>
>>>>CC: samba@lists.samba.org
>>>>Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -&

Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-01 Thread Gordon Messmer

adrian sender wrote:


I am sticking to the documentation, (samba 3 by example by jht) 
excellent book!;


Yes, it's an excellent book.  I have a copy, myself.  However, you won't 
get anywhere "sticking to" its LDAP documentation.


The LDAP documentation in "Samba-3 by Example" is BAD.  Very bad.  It 
completely abrogates any discussion of security as a matter that the 
user should be expert enough to handle, and gives example configuration 
files that are completely open to attack.  It would have been better to 
ignore the LDAP server's configuration entirely and explicitly state 
that admins are expected to be able to do it on their own.


Further, "Samba-3 by Example" assumes that you have a working directory, 
to begin with.  Using OpenLDAP, you must create the containers (using 
slapadd, or ldapadd and the "rootdn") before you can bind and populate 
the directory with other tools.  This is covered in the quickstart guide:

http://www.openldap.org/doc/admin23/quickstart.html

I think you should follow Craig's advice, get your hands on a copy of 
"LDAP System Administration", and go through it carefully.  LDAP is a 
wonderful enabling technology, but if you don't understand how it works, 
you'll get terrible performance, and risk exposing private data.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-01 Thread Craig White
On Thu, 2006-03-02 at 14:47 +1100, adrian sender wrote:
> I will try to explain my situtation a little better so other can understand.
> 
> I am sticking to the documentation, (samba 3 by example by jht) excellent 
> book!;
> 
> So here is where I am at;
> 
> I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as per 
> the documentation chapter 6.
> 
> I do have a bdc; however there is no relivence to that as I am only working 
> on the PDC at the time;
> 
> I have these commented out in the slapd.conf for the moment.
> 
> #replica host=192.168.0.3:389
> #suffix="dc=tinistuff,dc=com"
> #binddn="cn=updateuser,dc=tinistuff,dc=com"
> #bindmethod=simple credentials=123456
> 
> #replogfile  /var/lib/ldap/replogfile
> 
> 
> This is my smb.conf as per chapter 6;
> ***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***
> 
> ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com
> 
> [EMAIL PROTECTED] sbin]# smbpasswd -w 123456
> Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in 
> secrets.tdb
> 
> Does this look right so far; I am now going to configure smbldaptools as per 
> the documentation; In chapter 5 (./configure)
> 
> Ok, now we take a look at this -
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
> 
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading access
> # By default, we will use the same DN (so it will work for standard Samba
> # release)
> slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
> masterPw="123456"
> 
> 
> Time to populate the ldap DB.
> [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
> 
> This does not work because it cannot bind as "sambaadmin"
> 
> If I change my smbldap_bind to Manager, I can populate the DB.
> 
> [EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
> 
> 
> # Credential Configuration #
> 
> # Notes: you can specify two differents configuration if you use a
> # master ldap for writing access and a slave ldap server for reading access
> # By default, we will use the same DN (so it will work for standard Samba
> # release)
> slaveDN="cn=Manager,dc=tinistuff,dc=com"
> slavePw="123456"
> masterDN="cn=Manager,dc=tinistuff,dc=com"
> masterPw="123456"
> 
> Now it populates fine.
> 
> Is this a fault on my behalf, or is there something wrong with "sambaadmin" 
> in the config files?
> 
> PS - please forgive any spelling errors.
> 

the problem with this of course is that this really has nothing to do
with Samba at all - this is strictly a user grappling with LDAP.

What do you get from command line ?

ldapsearch -x -h localhost -D 'cn=Manager,dc=tinistuff,dc=com' -W \
'(cn=sambaadmin)'

If there is a dn: there it should show several attributes including a
userPassword attribute.

My guess is that is why it's not working...either there isn't a dn:
cn=sambaadmin,dc=tinistuff,dc=com or there isn't a userPassword
attribute set.

My recommendation to you is to forget all about samba for a while and
learn how to set up and manage LDAP. Then integrating samba will be a
piece of cake.

Here's my best suggestion, buy LDAP System Administration book by Gerald
Carter (yes, our Jerry)...it's a bit outdated but it makes understanding
LDAP easy.

Using samba to learn LDAP is like trying to use salad tongs to do neuro
surgery.

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-01 Thread adrian sender

I will try to explain my situtation a little better so other can understand.

I am sticking to the documentation, (samba 3 by example by jht) excellent 
book!;


So here is where I am at;

I have configured my smb.conf; slapd.conf, ldap.conf, nssldap.conf as per 
the documentation chapter 6.


I do have a bdc; however there is no relivence to that as I am only working 
on the PDC at the time;


I have these commented out in the slapd.conf for the moment.

#replica host=192.168.0.3:389
#suffix="dc=tinistuff,dc=com"
#binddn="cn=updateuser,dc=tinistuff,dc=com"
#bindmethod=simple credentials=123456

#replogfile  /var/lib/ldap/replogfile


This is my smb.conf as per chapter 6;
***Note we are using "sambaadmin" and not "Manager" as in Chapter 5***

ldap admin dn = cn=sambaadmin,dc=tinistuff,dc=com

[EMAIL PROTECTED] sbin]# smbpasswd -w 123456
Setting stored password for "cn=sambaadmin,dc=tinistuff,dc=com" in 
secrets.tdb


Does this look right so far; I am now going to configure smbldaptools as per 
the documentation; In chapter 5 (./configure)


Ok, now we take a look at this -
[EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf


# Credential Configuration #

# Notes: you can specify two differents configuration if you use a
# master ldap for writing access and a slave ldap server for reading access
# By default, we will use the same DN (so it will work for standard Samba
# release)
slaveDN="cn=sambaadmin,dc=tinistuff,dc=com"
slavePw="123456"
masterDN="cn=sambaadmin,dc=tinistuff,dc=com"
masterPw="123456"


Time to populate the ldap DB.
[EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0

This does not work because it cannot bind as "sambaadmin"

If I change my smbldap_bind to Manager, I can populate the DB.

[EMAIL PROTECTED] sbin]# cat /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf


# Credential Configuration #

# Notes: you can specify two differents configuration if you use a
# master ldap for writing access and a slave ldap server for reading access
# By default, we will use the same DN (so it will work for standard Samba
# release)
slaveDN="cn=Manager,dc=tinistuff,dc=com"
slavePw="123456"
masterDN="cn=Manager,dc=tinistuff,dc=com"
masterPw="123456"

Now it populates fine.

Is this a fault on my behalf, or is there something wrong with "sambaadmin" 
in the config files?


PS - please forgive any spelling errors.

Kind Regards,
Adrian Sender.






From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>,  samba 
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Wed, 01 Mar 2006 08:13:32 -0800

Well... you have to create the containers using slapdadd.  After the 
containers are present, then you can populate them with users, etc, using 
ldapadd or other tools.  If you haven't created the containers, nothing is 
going to work.




adrian sender wrote:
The database has not been populated, and cannot be populated using 
"sambaadmin"





From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Tue, 28 Feb 2006 22:01:24 -0800

adrian sender wrote:


[EMAIL PROTECTED] scripts]# slapadd -v -l admin-accts.ldif
added: "cn=updateuser,dc=tinistuff,dc=com" (0002)
added: "cn=sambaadmin,dc=tinistuff,dc=com" (0003)
Error, entries missing!
 entry 1: dc=tinistuff,dc=com


If you dump the database, does "dc=tinistuff,dc=com" show up in there? It 
looks like the entry for the base DN is missing, which might explain the 
problems that you're having.










--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-03-01 Thread Gordon Messmer
Well... you have to create the containers using slapdadd.  After the 
containers are present, then you can populate them with users, etc, 
using ldapadd or other tools.  If you haven't created the containers, 
nothing is going to work.




adrian sender wrote:
The database has not been populated, and cannot be populated using 
"sambaadmin"





From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Tue, 28 Feb 2006 22:01:24 -0800

adrian sender wrote:


[EMAIL PROTECTED] scripts]# slapadd -v -l admin-accts.ldif
added: "cn=updateuser,dc=tinistuff,dc=com" (0002)
added: "cn=sambaadmin,dc=tinistuff,dc=com" (0003)
Error, entries missing!
 entry 1: dc=tinistuff,dc=com


If you dump the database, does "dc=tinistuff,dc=com" show up in there? 
It looks like the entry for the base DN is missing, which might 
explain the problems that you're having.







--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-28 Thread Craig White
On Wed, 2006-03-01 at 15:45 +1100, adrian sender wrote:
> Hi Gordon,
> 
> This is my admin-accts.ldif;
> ---
> dn: cn=updateuser,dc=tinistuff,dc=com
> objectClass: person
> cn: updateuser
> sn: updateuser
> userPassword: {crypt}ABiELdbxGY2fY
> 
> dn: cn=sambaadmin,dc=tinistuff,dc=com
> objectClass: person
> cn: sambaadmin
> sn: sambaadmin
> userPassword: {crypt}ABiELdbxGY2fY
> 
> 
> 
> So the ldap server is stopped, I add these entries; and restart ldap.
> 
> [EMAIL PROTECTED] scripts]# slapadd -v -l admin-accts.ldif
> added: "cn=updateuser,dc=tinistuff,dc=com" (0002)
> added: "cn=sambaadmin,dc=tinistuff,dc=com" (0003)
> Error, entries missing!
>   entry 1: dc=tinistuff,dc=com
> 
> 
> [EMAIL PROTECTED] programs]# ldapsearch -x -D 
> "cn=sambaadmin,dc=tinistuff,dc=com" 
> -W uid=sambaadmin
> Enter LDAP Password:
> ldap_bind: Invalid credentials (49)
> 
> It will not let me populate the database either; however I can populate fine 
> when using "Manager" instead of "sambaadmin"
> 
> [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
> Populating LDAP directory for domain TINISTUFF 
> (S-1-5-21-1850218137-420253120-3974286998)
> (using builtin directory structure)
> 
> adding new entry: dc=tinistuff,dc=com
> failed to add entry: modifications require authentication at 
> ./smbldap-populate line 471,  line 2.

no - this seems to have failed too.

can you authenticate with your rootdn?

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-28 Thread Gordon Messmer

adrian sender wrote:


[EMAIL PROTECTED] scripts]# slapadd -v -l admin-accts.ldif
added: "cn=updateuser,dc=tinistuff,dc=com" (0002)
added: "cn=sambaadmin,dc=tinistuff,dc=com" (0003)
Error, entries missing!
 entry 1: dc=tinistuff,dc=com


If you dump the database, does "dc=tinistuff,dc=com" show up in there? 
It looks like the entry for the base DN is missing, which might explain 
the problems that you're having.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-28 Thread adrian sender

Hi Gordon,

This is my admin-accts.ldif;
---
dn: cn=updateuser,dc=tinistuff,dc=com
objectClass: person
cn: updateuser
sn: updateuser
userPassword: {crypt}ABiELdbxGY2fY

dn: cn=sambaadmin,dc=tinistuff,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: {crypt}ABiELdbxGY2fY



So the ldap server is stopped, I add these entries; and restart ldap.

[EMAIL PROTECTED] scripts]# slapadd -v -l admin-accts.ldif
added: "cn=updateuser,dc=tinistuff,dc=com" (0002)
added: "cn=sambaadmin,dc=tinistuff,dc=com" (0003)
Error, entries missing!
 entry 1: dc=tinistuff,dc=com


[EMAIL PROTECTED] programs]# ldapsearch -x -D "cn=sambaadmin,dc=tinistuff,dc=com" 
-W uid=sambaadmin

Enter LDAP Password:
ldap_bind: Invalid credentials (49)

It will not let me populate the database either; however I can populate fine 
when using "Manager" instead of "sambaadmin"


[EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0
Populating LDAP directory for domain TINISTUFF 
(S-1-5-21-1850218137-420253120-3974286998)

(using builtin directory structure)

adding new entry: dc=tinistuff,dc=com
failed to add entry: modifications require authentication at 
./smbldap-populate line 471,  line 2.


etc..



Hm :(

Adrian.




From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Sun, 26 Feb 2006 23:08:29 -0800

adrian sender wrote:

Hey Guys,

Gordon, I do not think that is the issue; I have tried what you said but 
still get the same error.


Remember I have a SDC or BDC that uses updateuser; the ldif I add for that 
uses plain text passwords and works perfectly.


I see... Your original message indicated that you had an "updateuser" in 
the database, but didn't indicate that you were actually using it for 
anything.


I'm still guessing that this is an LDAP issue, and not a samba one.

Are you able to perform a search with the sambaadmin user, or the 
updateuser user, using the ldapsearch command line?  Try both of these, and 
make sure that sambaadmin is not the rootdn specified in your slapd.conf:


ldapsearch -x -D "cn=sambaadmin,dc=ddesign,dc=com" -W uid=sambaadmin

ldapsearch -x -D "cn=updateuser,dc=ddesign,dc=com" -W uid=sambaadmin




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-26 Thread Gordon Messmer

adrian sender wrote:

Hey Guys,

Gordon, I do not think that is the issue; I have tried what you said but 
still get the same error.


Remember I have a SDC or BDC that uses updateuser; the ldif I add for 
that uses plain text passwords and works perfectly.


I see... Your original message indicated that you had an "updateuser" in 
the database, but didn't indicate that you were actually using it for 
anything.


I'm still guessing that this is an LDAP issue, and not a samba one.

Are you able to perform a search with the sambaadmin user, or the 
updateuser user, using the ldapsearch command line?  Try both of these, 
and make sure that sambaadmin is not the rootdn specified in your 
slapd.conf:


ldapsearch -x -D "cn=sambaadmin,dc=ddesign,dc=com" -W uid=sambaadmin

ldapsearch -x -D "cn=updateuser,dc=ddesign,dc=com" -W uid=sambaadmin

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-24 Thread adrian sender

Hey Guys,

Gordon, I do not think that is the issue; I have tried what you said but 
still get the same error.


Remember I have a SDC or BDC that uses updateuser; the ldif I add for that 
uses plain text passwords and works perfectly.


H.

Adrian.



From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Mon, 20 Feb 2006 10:20:58 -0800

adrian sender wrote:
Hi gordon, I don't think that is the issue here because I am able to use 
"Manager" ldif with plain text passwords.


Yeah... I don't think you are.  According to your account, you're only able 
to use Manager or sambaadmin when it's the rootdn in the openldap 
configuration file.  In that case, the plain text password from the 
configuration file, and not the password in the directory, is used.


Try crypt()ing the password, and see if that allows you to bind as the 
sambaadmin user, without specifying that account as the rootdn.





--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-20 Thread Gordon Messmer

adrian sender wrote:
Hi gordon, I don't think that is the issue here because I am able to use 
"Manager" ldif with plain text passwords.


Yeah... I don't think you are.  According to your account, you're only 
able to use Manager or sambaadmin when it's the rootdn in the openldap 
configuration file.  In that case, the plain text password from the 
configuration file, and not the password in the directory, is used.


Try crypt()ing the password, and see if that allows you to bind as the 
sambaadmin user, without specifying that account as the rootdn.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-19 Thread adrian sender
Hi gordon, I don't think that is the issue here because I am able to use 
"Manager" ldif with plain text passwords.


Cheers.

Adrian Sender.



From: Gordon Messmer <[EMAIL PROTECTED]>
To: adrian sender <[EMAIL PROTECTED]>
CC: samba@lists.samba.org
Subject: Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> 
sambaadmin)

Date: Sun, 19 Feb 2006 10:44:14 -0800

adrian sender wrote:


dn: cn=sambaadmin,dc=ddesign,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: 123456

When using sambaadmin instead of manager samba hangs unable to connect to 
the ldap database, however if i change this entry in the slapd.conf all 
works find also.


rootdn  "cn=Manager,dc=ddesign,dc=com"

TO>>>

rootdn  "cn=sambaadmin,dc=ddesign,dc=com"


Given that, I'd guess that your directory server doesn't support plain text 
userPassword fields.  Try crypt()ing them.


# perl -e 'print crypt("123456", "AB") . "\n"'
ABiELdbxGY2fY

So, then, your LDIF should have:

dn: cn=sambaadmin,dc=ddesign,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: {crypt}ABiELdbxGY2fY





--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-19 Thread Gordon Messmer

adrian sender wrote:


dn: cn=sambaadmin,dc=ddesign,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: 123456

When using sambaadmin instead of manager samba hangs unable to connect 
to the ldap database, however if i change this entry in the slapd.conf 
all works find also.


rootdn  "cn=Manager,dc=ddesign,dc=com"

TO>>>

rootdn  "cn=sambaadmin,dc=ddesign,dc=com"


Given that, I'd guess that your directory server doesn't support plain 
text userPassword fields.  Try crypt()ing them.


# perl -e 'print crypt("123456", "AB") . "\n"'
ABiELdbxGY2fY

So, then, your LDIF should have:

dn: cn=sambaadmin,dc=ddesign,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: {crypt}ABiELdbxGY2fY


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba 3 by Example - chapter 5 & 6 ( Manager -> sambaadmin)

2006-02-05 Thread adrian sender

Dear Samba & Users.

I have spent some time going over the documentation, however I still no not
fully understand what the cause is.

I am focusing on Samba 3 by Example chapter 5 & 6 specifically

Chapter 5 smbpasswd -w 123456

[EMAIL PROTECTED] data]# smbpasswd -w 123456
Setting stored password for "cn=Manager,dc=ddesign,dc=com" in secrets.tdb

Chapter 6 indicates in the smb.conf to use sambaadmin instead of manager.
If i change this to manager in the smb.conf & also this entry in the
slapd.conf


access to attrs=sambaLMPassword,sambaNTPassword
 by dn="cn=sambaadmin,dc=ddesign,dc=com" write
 by * none

to

access to attrs=sambaLMPassword,sambaNTPassword
 by dn="cn=Manager,dc=ddesign,dc=com" write
 by * none

Alll works fine.

Chapter 6 smbpasswd -w 123456

[EMAIL PROTECTED] ~]# smbpasswd -w 123456
Setting stored password for "cn=sambadmin,dc=ddesign,dc=com" in secrets.tdb

[EMAIL PROTECTED] samba]# cat smbd
[2006/01/30 15:23:15, 0] lib/smbldap.c:smbldap_connect_system(890)
failed to bind to server ldap://127.0.0.1 with
dn="cn=sambadmin,dc=ddesign,dc=com" Error: Invalid credentials

[2006/01/30 15:23:15, 1] lib/smbldap.c:another_ldap_try(1051)
  Connection to LDAP server failed for the 1 try!

I have added this ldif entry from chapter 6 ;

dn: cn=updateuser,dc=ddesign,dc=com
objectClass: person
cn: updateuser
sn: updateuser
userPassword: 123456

dn: cn=sambaadmin,dc=ddesign,dc=com
objectClass: person
cn: sambaadmin
sn: sambaadmin
userPassword: 123456

When using sambaadmin instead of manager samba hangs unable to connect to 
the ldap database, however if i change this entry in the slapd.conf all 
works find also.


rootdn  "cn=Manager,dc=ddesign,dc=com"

TO>>>

rootdn  "cn=sambaadmin,dc=ddesign,dc=com"

I have been through this configuration several times and keep getting the 
same issue.


Is it possible that I am missing a crutial step between chapter 5 and the 
single master ldap chapter 6 master/slave configuration.


This is only for testing purposes so I can blow away the database without 
any worries.


I am thinking that the problem may be an entry in ldap is not there, 
although it shows the sambaadmin user. For the moment I am using Manager in 
replace of sambaadmin.



Thanks.
Adrian Sender.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example Ch 6

2005-06-16 Thread John H Terpstra
On Sunday 01 May 2005 23:07, taso wrote:
> taso wrote:
> > I am following Chapter 6 of Samba-3 By Example to set up Samba on
> > a Fedora 3 box. It seems to go Ok until page 144 step 5.
> >
> > # net getlocalsid
> > [2005/05/02 00:22:04, 0] lib/smbldap.c:smbldap_search_suffix(1155)
> >   smbldap_search_suffix: Problem during the LDAP search:  (No such
> > object) SID for domain SIROCCO is: S-1-5-21- etc
>
> The smbldap_search_suffix: error went away when I added the following
> entries to LDAP directory.

That is normal behavior.

> dn: dc=esands,dc=com
> objectclass: dcObject
> objectclass: organization
> o: ESS
> dc: esands
>
> dn: cn=Manager,dc=esands,dc=com
> objectclass: organizationalRole
> cn: Manager
>
> http://www.openldap.org/doc/admin22/quickstart.html shows how to do the
> above.
>
> Now "net getlocalsid sirocco" produces the same SID as "net getlocalsid
> esands", ie the same SID for both the host (PDC) and the domain. Can
> anybody confirm that it's supposed to be like that?

In case you did not get an answer to this question: Yes, on a PDC the domain 
SID and the machine SID are the same.

- John T.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example Exercise 2.3

2005-05-20 Thread John H Terpstra
On Friday 20 May 2005 19:16, Eric Hines wrote:
> The FAQ (question/answer 2) says that the DHCP server config
> /etc/dhcpd.conf) automatically provides each client with the IP address of
> the WINS server.  I've been over the provided dhcpd.conf, and I cannot find
> which line(s) are referring to the WINS server.

option netbios-name-servers

>
> Also, as written, when I tried to start my dhcpd, I got an error saying I
> had to specify a ddns-update-style.  I wound up adding at the top the
> following:
>  ddns-update-style interim;
>  ignore client-updates;

The ISC dhcpd has changed a little over the past year.

> This has worked well, so far.
>
> Eric Hines
>
> Government programs provide enough to keep you alive, but they don't offer
> any hope of living your dreams.
>  --Grim

The executioner has often been kinder than government programs.

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by Example Exercise 2.3

2005-05-20 Thread Eric Hines
The FAQ (question/answer 2) says that the DHCP server config 
/etc/dhcpd.conf) automatically provides each client with the IP address of 
the WINS server.  I've been over the provided dhcpd.conf, and I cannot find 
which line(s) are referring to the WINS server.

Also, as written, when I tried to start my dhcpd, I got an error saying I 
had to specify a ddns-update-style.  I wound up adding at the top the 
following:
ddns-update-style interim;
ignore client-updates;

This has worked well, so far.
Eric Hines
Government programs provide enough to keep you alive, but they don't offer 
any hope of living your dreams.
--Grim 

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by example Ch.3

2005-05-17 Thread Koenraad Lelong
sysrm wrote:
Hi
This is what I have for my passwd chat stuff
passwd program = /usr/bin/passwd %u
...
Hope that helps
Ross 

That's it. Thanks.
--
Met vriendelijke groeten,
Koenraad Lelong
R&D Manager
ACE electronics n.v.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by example Ch.3

2005-05-13 Thread John H Terpstra
On Friday 13 May 2005 06:19, Koenraad Lelong wrote:
> Hi,
> I'm following chapter 3 (from the web-site), and I copied and pasted the
> smb.conf file. I corrected an error (I think) : passwd chat = *New*... :
> the "=" was missing and then "*New*..." was on the following line.
> Then I ran testparm -s, and I got an error :
> ERROR: the 'passwd program' () requires a '%u' parameter.
> I seem unable to solve this. Any pointers ?
> TIA

This book is in copy edit at this time. The actual file is attached.

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
# Global parameters
[global]
workgroup = PROMISES
netbios name = DIAMOND
interfaces = eth1, eth2, lo
bind interfaces only = Yes
passdb backend = tdbsam
pam password change = Yes
passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n 
*Password*changed*
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139 445
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' ''%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null '%u'
shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
logon script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = X:
logon home = \\%L\%U
domain logons = Yes
preferred master = Yes
wins support = Yes
utmp = Yes
winbind use default domain = Yes
map acl inherit = Yes
printing = cups
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/

[IPC$]
path = /tmp
hosts allow = 192.168.1.0/24, 192.168.2.0/24, 127.0.0.1
hosts deny = 0.0.0.0/0

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[printers]
comment = SMB Print Spool
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
default devmode = Yes
browseable = No

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = Yes
locking = No

[profiles]
comment = Profile Share
path = /var/lib/samba/profiles
read only = No
profile acls = Yes

[accounts]
comment = Accounting Files
path = /data/accounts
read only = No

[service]
comment = Financial Services Files
path = /data/service
read only = No

[apps]
comment = Application Files
path = /apps
admin users = bjones
read only = No
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Samba-3 by example Ch.3

2005-05-13 Thread sysrm
Hi

This is what I have for my passwd chat stuff

passwd program = /usr/bin/passwd %u
passwd chat = *password* %n\n *password* %n\n *successfully*

Hope that helps

Ross 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Koenraad Lelong
Sent: 13 May 2005 13:19
To: samba@lists.samba.org
Subject: [Samba] Samba-3 by example Ch.3

Hi,
I'm following chapter 3 (from the web-site), and I copied and pasted the
smb.conf file. I corrected an error (I think) : passwd chat = *New*... : 
the "=" was missing and then "*New*..." was on the following line.
Then I ran testparm -s, and I got an error :
ERROR: the 'passwd program' () requires a '%u' parameter.
I seem unable to solve this. Any pointers ?
TIA
--
Met vriendelijke groeten,
Koenraad Lelong
R&D Manager
ACE electronics n.v.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by example Ch.3

2005-05-13 Thread Koenraad Lelong
Hi,
I'm following chapter 3 (from the web-site), and I copied and pasted the 
smb.conf file. I corrected an error (I think) : passwd chat = *New*... : 
the "=" was missing and then "*New*..." was on the following line.
Then I ran testparm -s, and I got an error :
ERROR: the 'passwd program' () requires a '%u' parameter.
I seem unable to solve this. Any pointers ?
TIA
--
Met vriendelijke groeten,
Koenraad Lelong
R&D Manager
ACE electronics n.v.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example Ch 6

2005-05-02 Thread Tony Earnshaw
man, 02.05.2005 kl. 07.07 skrev taso:

> > I am following Chapter 6 of Samba-3 By Example to set up Samba on
> > a Fedora 3 box. It seems to go Ok until page 144 step 5.
> > 
> > # net getlocalsid
> > [2005/05/02 00:22:04, 0] lib/smbldap.c:smbldap_search_suffix(1155)
> >   smbldap_search_suffix: Problem during the LDAP search:  (No such object)
> > SID for domain SIROCCO is: S-1-5-21- etc
> > 
> > 
> 
> The smbldap_search_suffix: error went away when I added the following entries
> to LDAP directory.
> 
> dn: dc=esands,dc=com
> objectclass: dcObject
> objectclass: organization
> o: ESS
> dc: esands
> 
> dn: cn=Manager,dc=esands,dc=com
> objectclass: organizationalRole
> cn: Manager
> 
> http://www.openldap.org/doc/admin22/quickstart.html shows how to do the above.
> 
> Now "net getlocalsid sirocco" produces the same SID as "net getlocalsid 
> esands",
> ie the same SID for both the host (PDC) and the domain. Can anybody confirm 
> that it's
> supposed to be like that?

There is no such command as "net getlocalsid user". What you're seeing
in both cases is the output of "net getlocalsid". 'man net', search for
"getlocalsid".

--Tonni

-- 
Nothing sucksseeds like a pigeon without a beak ...

mail: [EMAIL PROTECTED]
http://www.billy.demon.nl
 
They'll love us, won't they? They feed us, don't they? ...

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example Ch 6

2005-05-01 Thread taso
taso wrote:
I am following Chapter 6 of Samba-3 By Example to set up Samba on
a Fedora 3 box. It seems to go Ok until page 144 step 5.
# net getlocalsid
[2005/05/02 00:22:04, 0] lib/smbldap.c:smbldap_search_suffix(1155)
  smbldap_search_suffix: Problem during the LDAP search:  (No such object)
SID for domain SIROCCO is: S-1-5-21- etc

The smbldap_search_suffix: error went away when I added the following 
entries
to LDAP directory.
dn: dc=esands,dc=com
objectclass: dcObject
objectclass: organization
o: ESS
dc: esands
dn: cn=Manager,dc=esands,dc=com
objectclass: organizationalRole
cn: Manager
http://www.openldap.org/doc/admin22/quickstart.html shows how to do the above.
Now "net getlocalsid sirocco" produces the same SID as "net getlocalsid esands",
ie the same SID for both the host (PDC) and the domain. Can anybody confirm 
that it's
supposed to be like that?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example Ch 6

2005-05-01 Thread Tony Earnshaw
søn, 01.05.2005 kl. 16.39 skrev taso:

> I am following Chapter 6 of Samba-3 By Example to set up Samba on
> a Fedora 3 box. It seems to go Ok until page 144 step 5.
> 
> # net getlocalsid
> [2005/05/02 00:22:04, 0] lib/smbldap.c:smbldap_search_suffix(1155)
>smbldap_search_suffix: Problem during the LDAP search:  (No such object)
> SID for domain SIROCCO is: S-1-5-21- etc

[...]

Before you go any further, "no such object" from LDAP usually means that
you have your LDAP base (suffix) seriously screwed up. I suggest that
you sort that out first, since it keeps on occurring.

You can test with OpenLDAP's (if that's what you're using) ldapsearch
(read the man page, for goodness sake) and do try to figure out how LDAP
works, from the ground off. It's worth the trouble, since LDAP is a pot
of gold for Unix admins.

Best,

--Tonni

-- 
Nothing sucksseeds like a pigeon without a beak ...

mail: [EMAIL PROTECTED]
http://www.billy.demon.nl
 
They'll love us, won't they? They feed us, don't they? ...

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 By Example, Example 2.4

2005-05-01 Thread E Hines
I'm running FC3 with Samba v 3.0.14a, and I'm trying to implement
Example 2.4 from JHT's 2004 ed. of  Samba-3 by Example.  I have lserver1
as my Linux box and jupiter (user annlee) and mustelidae (ehines) as
Win2k boxes.  ehines has access to his share (path /archive/ehines
(/archive/%U in smb.conf)), but annlee does not to her share
(/archive/annlee).  If I add annlee as a valid user to master, though,
she does have access.  It works in the other direction, too: if annlee
is a valid user of master, and ehines is not, then ehines has no access.

Without annlee as a valid user of share master, then when she tries to
access her share from jupiter, she gets a dialog box inviting her to log
in, and this fails ("Incorrect password or unknown user name").  

I've run the diagnostics, et al., from the Terpstra and Vernooij Samba
HOWTO book, and they all work. 
 
The essential parts of my smb.conf follow.  I appreciate any help I can
get.

Eric Hines

[global]
workgroup = ASTRA_ENT
log file = /var/log/samba/log.smbd
max log size = 500
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
show add printer wizard = No
ldap ssl = no

[files]
comment = The actual backups
path = /archive/%U
valid users = %S
read only = No

[master]
comment = Master work area
path = /archive
valid users = ehines
read only = No
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by Example Ch 6

2005-05-01 Thread taso
I am following Chapter 6 of Samba-3 By Example to set up Samba on
a Fedora 3 box. It seems to go Ok until page 144 step 5.
# net getlocalsid
[2005/05/02 00:22:04, 0] lib/smbldap.c:smbldap_search_suffix(1155)
  smbldap_search_suffix: Problem during the LDAP search:  (No such object)
SID for domain SIROCCO is: S-1-5-21- etc
Running the same command with some debugging:
# net -d 2 getlocalsid
[2005/05/02 00:27:43, 2] lib/interface.c:add_interface(79)
  added interface ip=172.16.0.4 bcast=172.16.255.255 nmask=255.255.0.0
[2005/05/02 00:27:43, 2] lib/interface.c:add_interface(79)
  added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2005/05/02 00:27:43, 2] lib/smbldap.c:smbldap_search_domain_info(1373)
  Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=ESANDS))]
[2005/05/02 00:27:43, 2] lib/smbldap.c:smbldap_open_connection(692)
  smbldap_open_connection: connection opened
[2005/05/02 00:27:43, 0] lib/smbldap.c:smbldap_search_suffix(1155)
  smbldap_search_suffix: Problem during the LDAP search:  (No such object)
[2005/05/02 00:27:43, 2] lib/smbldap.c:smbldap_search_domain_info(1381)
  Problem during LDAPsearch: No such object
[2005/05/02 00:27:43, 2] lib/smbldap.c:smbldap_search_domain_info(1382)
  Query was: dc=esands,dc=com, 
(&(objectClass=sambaDomain)(sambaDomainName=ESANDS))
[2005/05/02 00:27:43, 2] passdb/pdb_ldap.c:pdb_init_ldapsam(2959)
  pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the 
domain
  pdb_init_ldapsam: Continuing on regardless, will be unable to allocate new 
users/groups, and will risk BDCs having inconsistant SIDs
SID for domain SIROCCO is: S-1-5-21- etc
[2005/05/02 00:27:43, 2] utils/net.c:main(859)
  return code = 0
It seems that a SID is being created for the host (SIROCCO) but not for the 
domain (ESANDS).
Is it smbd that is responsible for creating the domain SID?
Can anyone offer some insight as to what might be going wrong?


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example & Migrations

2005-04-02 Thread John H Terpstra
Mike,

Your request has been noted.  As soon as I get a moment I will add appropriate 
notes to the Samba-HOWTO-Collection and I may add another chapter on Samba to 
Samba migration in the Samba-Guide.

Cheers,
John T.

On Friday 01 April 2005 07:01, Mike Rambo wrote:
> One topic I can't find in either Samba 3 by Example or the Offical Samba
> 3 Howto & Reference Guide is that of migrating from a Samba3 server to a
> newer Samba 3 server (meaning newer hardware in this case).
>
> We are currently using the smbpasswd backend. I plan to move to tdbsam
> but that hasn't been done yet. All of the servers in question are
> running either whitebox 3 or redhat 9 (if it matters) and Samba 3.0.4.
> Our primary migration goal is to not have to touch all the 2000
> workstations to rejoin them to the domain.
>
> I have messed around with manually merging /etc/group, /etc/passwd,
> /etc/shadow, /etc/samba/smbpasswd and copying /etc/samba/secrets.tdb
> from the old to the new server and have been able to make this work
> (once at least so far - I'm still experimenting) but would like to use
> better methods for the migration.
>
> I like 'net rpc vampire' on NT4 but that to my surprise doesn't seem to
> work against a Samba PDC and if it is addressed in a Samba to Samba
> context in either book I couldn't find it. I'm going to experiment in a
> little while with converting to tdbsam first but it occured to me that
> someone out there might be able to cut down on the time I have to spend
> experimenting if I just ask.
>
> Anyone done this before?
>
>
> --
> Mike Rambo
> [EMAIL PROTECTED]
>
> NOTE: In order to control energy costs the light at the end
> of the tunnel has been shut off until further notice...

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example & Migrations

2005-04-01 Thread jonlists
I agree on the migrations and Samba 3 - but I suppose the Samba team would 
appreciate it if rather than just requesting it, maybe some of us should 
provide some content, eh? 

Basically, with smbpasswd, if you take the /etc/shadow, etc/group, and 
/etc/passwd, the contents of /etc/samba, and I believe /var/lib/samba and 
move it to another machine, you've effectively migrated to that machine. 
One key here is keeping the host name the same so that the SID's remain 
intact. 

You could change the hostname if you restore the SID use the net 
getlocalSID - but keeping the SID intact is the key to keeping your domain 
structure intact. 

I'd do the upgrade to ldbsam (or ldap, if inclined) after you did the 
migration to new hardware. 

Good luck..

Jon Johnston
Creative Business Solutions
IBM, Microsoft, Novell/Suse, Sophos Consultants
http://www.cbsol.com
blog:http://bingo.cbsol.com

[EMAIL PROTECTED] wrote on 04/01/2005 
08:01:03 AM:

> One topic I can't find in either Samba 3 by Example or the Offical Samba 

> 3 Howto & Reference Guide is that of migrating from a Samba3 server to a 

> newer Samba 3 server (meaning newer hardware in this case).
> 
> We are currently using the smbpasswd backend. I plan to move to tdbsam 
> but that hasn't been done yet. All of the servers in question are 
> running either whitebox 3 or redhat 9 (if it matters) and Samba 3.0.4. 
> Our primary migration goal is to not have to touch all the 2000 
> workstations to rejoin them to the domain.
> 
> I have messed around with manually merging /etc/group, /etc/passwd, 
> /etc/shadow, /etc/samba/smbpasswd and copying /etc/samba/secrets.tdb 
> from the old to the new server and have been able to make this work 
> (once at least so far - I'm still experimenting) but would like to use 
> better methods for the migration.
> 
> I like 'net rpc vampire' on NT4 but that to my surprise doesn't seem to 
> work against a Samba PDC and if it is addressed in a Samba to Samba 
> context in either book I couldn't find it. I'm going to experiment in a 
> little while with converting to tdbsam first but it occured to me that 
> someone out there might be able to cut down on the time I have to spend 
> experimenting if I just ask.
> 
> Anyone done this before?
> 
> 
> -- 
> Mike Rambo
> [EMAIL PROTECTED]
> 
> NOTE: In order to control energy costs the light at the end
> of the tunnel has been shut off until further notice...
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba 3 by Example & Migrations

2005-04-01 Thread Mike Rambo
One topic I can't find in either Samba 3 by Example or the Offical Samba 
3 Howto & Reference Guide is that of migrating from a Samba3 server to a 
newer Samba 3 server (meaning newer hardware in this case).

We are currently using the smbpasswd backend. I plan to move to tdbsam 
but that hasn't been done yet. All of the servers in question are 
running either whitebox 3 or redhat 9 (if it matters) and Samba 3.0.4. 
Our primary migration goal is to not have to touch all the 2000 
workstations to rejoin them to the domain.

I have messed around with manually merging /etc/group, /etc/passwd, 
/etc/shadow, /etc/samba/smbpasswd and copying /etc/samba/secrets.tdb 
from the old to the new server and have been able to make this work 
(once at least so far - I'm still experimenting) but would like to use 
better methods for the migration.

I like 'net rpc vampire' on NT4 but that to my surprise doesn't seem to 
work against a Samba PDC and if it is addressed in a Samba to Samba 
context in either book I couldn't find it. I'm going to experiment in a 
little while with converting to tdbsam first but it occured to me that 
someone out there might be able to cut down on the time I have to spend 
experimenting if I just ask.

Anyone done this before?
--
Mike Rambo
[EMAIL PROTECTED]
NOTE: In order to control energy costs the light at the end
of the tunnel has been shut off until further notice...
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 By Example correction...

2005-03-21 Thread John H Terpstra
On Monday 21 March 2005 12:23, Mccrory, Kevin B wrote:
> userpaddword

Yikes! Thanks for bumping me with this. It's fixed in the source tree now.

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 By Example correction...

2005-03-21 Thread Mccrory, Kevin B
Chapter 7, Section 7.3 Step 3 needs a correction:

The step has users create an admin-accts.ldif file.

As currently written the userpaddword: not24get should be userPassword
with the P capitalized. Failure to have this causes a replication error:
access denied since the password for updateuser is never loaded. 

Kevin B. McCrory
Network Engineer - COPS
US Government Solutions
13600 EDS Drive
Mail stop:  A4S-B21
Herndon, VA 20171
* phone: +01-703-733-3255
* mailto:[EMAIL PROTECTED]
* AKO mailto:[EMAIL PROTECTED]


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-3 by Example

2004-04-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ernst Pehl wrote:
| Hi,
|
| the Samba-3 by Example-Book should be appear on the
| Samba web site by April 14th under the documentation page. But
| there is nothing. Where can I get the pdf-file?
The PDF is available now.  We had some mirroring problems
after the server upgrade.  I'm working out the last issue
with the HTLM version today.


cheers, jerry
- --
Hewlett-Packard- http://www.hp.com
SAMBA Team -- http://www.samba.org
GnuPG Key   http://www.plainjoe.org/gpg_public.asc
"...a hundred billion castaways looking for a home." --- Sting
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAjVqKIR7qMdg1EfYRAqA0AJ98sQrckcpCoZwPLT9Br6ciuuL4kwCg86V1
/HROQh4wyXXKkgDl+a9Z67k=
=R4/z
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by Example

2004-04-23 Thread Ernst Pehl
Hi,

the Samba-3 by Example-Book should be appear on the Samba web site by
April 14th under the documentation page. But there is nothing. Where can
I get the pdf-file?

Regards from the sunny Ansbach (Germany)

Ernst Pehl
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] "Samba-3 by Example" now available

2004-04-06 Thread Chuck Stuettgen
On Tue, 2004-04-06 at 16:31, Harry, Jill wrote:
> Hi All,
> 
> Thanks to everyone who has written wanting more information on when "Samba-3
> by Example" by John Terpstra will be available. The good news is that it is
> available right now through your local bookstore or online sites like
> Amazon.com. 
> 
> There are already a couple of very positive comments posted to Amazon. These
> indicate that if you want to get Samba-3 up and running, you'll find the
> book very useful. We certainly hope this is the case. Please send any
> comments about the book to me and John. We're always interestd in feedback.
> 
> Thanks again for your interest.
> 
> Jill Harry
> Executive Editor
> AW/PHPTR
> 5585 Bear Creek Drive
> Catheys Valley, CA 95306
> 209-374-3402
> 209-374-3406 fax
> [EMAIL PROTECTED]
> www.phptr.com
> 
> 

My copy shipped today!  WhooHoo!!



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] "Samba-3 by Example" now available

2004-04-06 Thread Harry, Jill
Hi All,

Thanks to everyone who has written wanting more information on when "Samba-3
by Example" by John Terpstra will be available. The good news is that it is
available right now through your local bookstore or online sites like
Amazon.com. 

There are already a couple of very positive comments posted to Amazon. These
indicate that if you want to get Samba-3 up and running, you'll find the
book very useful. We certainly hope this is the case. Please send any
comments about the book to me and John. We're always interestd in feedback.

Thanks again for your interest.

Jill Harry
Executive Editor
AW/PHPTR
5585 Bear Creek Drive
Catheys Valley, CA 95306
209-374-3402
209-374-3406 fax
[EMAIL PROTECTED]
www.phptr.com



This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by Example is at Prentice Hall

2004-04-02 Thread John Schmerold
Amazon isn't shipping yet, however Prentice Hall will ship direct
http://phptr.com/title/0131472216
I had it come in overnight (I'm really anxious to get my LDAP 
configuraion working), so Prentice Hall was $10 cheaper than Amazon.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba-3 by Example book availability

2004-03-03 Thread Harry, Jill
Hi All,

I appreciate those who have written requesting clarification as to when John
Terpstra's latest book, "Samba-3 By Example: Practical Exercises to
Successful Deployment" will be available. In answer to your queries, it's on
schedule to be available in retail outlets (your local technical bookstore,
Barnes & Noble, Borders, Amazon) by the first week of April.  Or, it can be
pre-ordered now at Amazon:
http://www.amazon.com/exec/obidos/ASIN/0131472216/qid%3D1077225188/sr%3D11-1
/ref%3Dsr%5F11%5F1/102-2225595-6404924  

Given the level of interest, we're thinking of giving away a few copies-- as
soon as we've sorted out how to determine the winners, we'll follow up with
announcement. If anyone has a suggestion, please send them my way.

Thanks!

Jill

Jill Harry
Executive Editor
Prentice Hall PTR
5585 Bear Creek Drive
Cathey's Valley, CA 95306
209-374-3402
209-374-3406 fax
[EMAIL PROTECTED]
www.phptr.com




This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba