Re: [Samba] Running and testing SMB2 under RHEL 5 and RHEL 6

2011-02-20 Thread Jeff Layton
On Sat, 19 Feb 2011 19:04:35 -0500
Nico Kadel-Garcia nka...@gmail.com wrote:

 Does RHEL 5 or RHEL 6, or the current versions of cifs-utils available
 for either, actually support SMB2? I don't see a mount.smb2 binary
 in the packages, though I see it mentioned in the docs, and I'd like
 to really hammer the SMB2 server for performance comparisons. But it's
 meaningless if if it's not actually mounting as SMB2.

smb2fs is still under development upstream and neither RHEL5 or 6
include client-side support in the kernel. I'm not clear on whether
server-side support is being shipped in either though (the folks that
maintain that piece would need to comment).

-- 
Jeff Layton jlay...@redhat.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] making BDC samba + ldap server

2011-02-20 Thread marcos gonzalez
Hi

Thanks, this howto for me its better. I have other doubt, syncrepl needs to
be installed or comes integrated with slapd daemon?

And to transfer all shared samba folders and profile content, when it's the
better moment? I understand when samba is down or when is up?

Thanks and Best Regards

2011/2/20 t...@tms3.com



 Now you are on to copy your slapd.conf and ldap.conf to your new machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 ---HOw I can make this If slurpd is deprecated? The
 guide


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 not's easy to understand, not exist other howto more simple?

 Here is another guide. The first link is quite comprehensive.
 http://www.zytrax.com/books/ldap/ch7/

 The entire online manual is a good read. I highly recommend it.



 Now important I do the trick with slurpd. There are many other ways but
 this
 is easy.
 Slurpd should be installed on your Master an only there.
 So go in to the slapd.conf on your master and put a few lines in it at
 the
 end.
 Be carefull all tabs must fit exact as this example:

 replica uri=ldap://IPOFYOUR2MACHINE:389
 binddn=cn=youradmin,dc=your,dc=ldap
  suffix=dc=yourc,dc=ldap
  bindmethod=simple
  credentials=securepassword

 I understand the part of backup slapd only works with the service stopped?

 Well Im grateful for all your time :-)

 Thanks and Best Regards



 2011/2/18 t...@tms3.com



 In my hint I think your samba PDC/Ldap is cuurently working well!
 First of all install a second machine with the samba and ldap.
 Do not start samba, do not start ldap.
 The ldap database should be nearly empty ex:/var/lib/ldap

 Now copy your smb.conf to your new machine ex: scp root@2machine
 :/etc/samba
 Edit the smb.conf to your needs and adjust it to be a bdc:
 domain master=NO
 domain logons=YES
 Make a testparm it should succed like this:
 testparm
 Load smb config files from /etc/samba/smb.conf
 Processing section [netlogon]
 WARNING: The share modes option is deprecated
 Processing section [sysvol]
 WARNING: The share modes option is deprecated
 Processing section [homes]
 Processing section [profiles]
 Processing section [alles]
 Processing section [printers]
 Processing section [print$]
 Loaded services file OK.
 Server role: ROLE_DOMAIN_BDC you are a BDC
 Press enter to see a dump of your service definitions

 Yes very nice!



 Now you are on to copy your slapd.conf and ldap.conf to your new machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 Now important I do the trick with slurpd.

 Sorry, but Slurpd is depricated and no longer available in Openldap since
 2.3
 http://www.openldap.org/doc/admin24/replication.html#Replacing%20Slurpd

 Here is nice overview of the way LDAP currently works:


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 Once you have sync-repl set up on the current master, and a proper
 slapd.conf and ldap.conf file on the new machine, start ldap, then

 smbpasswd -w ldap-master-passwd
 net rpc join -Uadministrator domain name

 Done.




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


Re: [Samba] Running and testing SMB2 under RHEL 5 and RHEL 6

2011-02-20 Thread Nico Kadel-Garcia
On Sun, Feb 20, 2011 at 7:51 AM, Jeff Layton jlay...@redhat.com wrote:
 On Sat, 19 Feb 2011 19:04:35 -0500
 Nico Kadel-Garcia nka...@gmail.com wrote:

 Does RHEL 5 or RHEL 6, or the current versions of cifs-utils available
 for either, actually support SMB2? I don't see a mount.smb2 binary
 in the packages, though I see it mentioned in the docs, and I'd like
 to really hammer the SMB2 server for performance comparisons. But it's
 meaningless if if it's not actually mounting as SMB2.

 smb2fs is still under development upstream and neither RHEL5 or 6
 include client-side support in the kernel. I'm not clear on whether
 server-side support is being shipped in either though (the folks that
 maintain that piece would need to comment).

Oh, brother. I've got a colleague who really wants SMB2 support under
RHEL, for completely understandable reasons. Large Java development
environments, large sets of lots of little scattered files. I was
confused by the various references to it in cifs-utils upstream
discussions and thought it would be available. I should have asked
here, thank you very much for such a quick and clear answer!

Since I'm dealing with NetApps for back end storage, I only really
need client support. Server side support would be good: it would
wildly improve Subversion checkouts into CIFS shares for large working
copies, I expect.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] making BDC samba + ldap server

2011-02-20 Thread tms3





Hi

Thanks, this howto for me its better. I have other doubt, syncrepl 
needs to be installed or comes integrated with slapd daemon?


It is all part of the openldap suite.




And to transfer all shared samba folders and profile content, when 
it's the better moment? I understand when samba is down or when is up?


Depends on the permissions. However, so long as ALL the files to be 
transferred belong to users in LDAP then, with nss_ldap properly 
configured, any copy that preserves permissions should be fine.




Thanks and Best Regards


2011/2/20 t...@tms3.com







Now you are on to copy your slapd.conf and ldap.conf to your new 
machine:

Ex: scp slapd.conf root@2machine:/etc/openldap

---HOw I can make this If slurpd is 
deprecated? The guide


http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

not's easy to understand, not exist other howto more simple?

Here is another guide. The first link is quite comprehensive.
http://www.zytrax.com/books/ldap/ch7/

The entire online manual is a good read. I highly recommend it.








Now important I do the trick with slurpd. There are many other 
ways but this

is easy.
Slurpd should be installed on your Master an only there.
So go in to the slapd.conf on your master and put a few lines in 
it at the

end.
Be carefull all tabs must fit exact as this example:

replica uri=ldap://IPOFYOUR2MACHINE:389
binddn=cn=youradmin,dc=your,dc=ldap
 suffix=dc=yourc,dc=ldap
 bindmethod=simple
 credentials=securepassword

I understand the part of backup slapd only works with the service 
stopped?


Well Im grateful for all your time :-)

Thanks and Best Regards






2011/2/18 t...@tms3.com







In my hint I think your samba PDC/Ldap is cuurently working well!
First of all install a second machine with the samba and ldap.
Do not start samba, do not start ldap.
The ldap database should be nearly empty ex:/var/lib/ldap

Now copy your smb.conf to your new machine ex: scp 
root@2machine:/etc/samba

Edit the smb.conf to your needs and adjust it to be a bdc:
domain master=NO
domain logons=YES
Make a testparm it should succed like this:
testparm
Load smb config files from /etc/samba/smb.conf
Processing section [netlogon]
WARNING: The share modes option is deprecated
Processing section [sysvol]
WARNING: The share modes option is deprecated
Processing section [homes]
Processing section [profiles]
Processing section [alles]
Processing section [printers]
Processing section [print$]
Loaded services file OK.
Server role: ROLE_DOMAIN_BDC  you are a 
BDC

Press enter to see a dump of your service definitions


Yes very nice!





Now you are on to copy your slapd.conf and ldap.conf to your new 
machine:

Ex: scp slapd.conf root@2machine:/etc/openldap

Now important I do the trick with slurpd.
Sorry, but Slurpd is depricated and no longer available in Openldap 
since 2.3

http://www.openldap.org/doc/admin24/replication.html#Replacing%20Slurpd

Here is nice overview of the way LDAP currently works:

http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

Once you have sync-repl set up on the current master, and a proper 
slapd.conf and ldap.conf file on the new machine, start ldap, then


smbpasswd -w ldap-master-passwd
net rpc join -Uadministrator domain name

Done.








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


Re: [Samba] making BDC samba + ldap server

2011-02-20 Thread marcos gonzalez
Hi

Ok, and how I config nss_ldap? When I copy all database is included?

Sorry for the newbie questions, If any time comes to barcelona contact me,
you has a beer paid (Daniel too)  :-)

Thanks and Best Regards

2011/2/20 t...@tms3.com



 Hi

 Thanks, this howto for me its better. I have other doubt, syncrepl needs to
 be installed or comes integrated with slapd daemon?

 It is all part of the openldap suite.



 And to transfer all shared samba folders and profile content, when it's the
 better moment? I understand when samba is down or when is up?

 Depends on the permissions. However, so long as ALL the files to be
 transferred belong to users in LDAP then, with nss_ldap properly configured,
 any copy that preserves permissions should be fine.



 Thanks and Best Regards

 2011/2/20 t...@tms3.com



 Now you are on to copy your slapd.conf and ldap.conf to your new machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 ---HOw I can make this If slurpd is deprecated?
 The guide


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 not's easy to understand, not exist other howto more simple?

 Here is another guide. The first link is quite comprehensive.
 http://www.zytrax.com/books/ldap/ch7/

 The entire online manual is a good read. I highly recommend it.



 Now important I do the trick with slurpd. There are many other ways
 but this
 is easy.
 Slurpd should be installed on your Master an only there.
 So go in to the slapd.conf on your master and put a few lines in it at
 the
 end.
 Be carefull all tabs must fit exact as this example:

 replica uri=ldap://IPOFYOUR2MACHINE:389
 binddn=cn=youradmin,dc=your,dc=ldap
  suffix=dc=yourc,dc=ldap
  bindmethod=simple
  credentials=securepassword

 I understand the part of backup slapd only works with the service stopped?


 Well Im grateful for all your time :-)

 Thanks and Best Regards



 2011/2/18 t...@tms3.com



 In my hint I think your samba PDC/Ldap is cuurently working well!
 First of all install a second machine with the samba and ldap.
 Do not start samba, do not start ldap.
 The ldap database should be nearly empty ex:/var/lib/ldap

 Now copy your smb.conf to your new machine ex: scp root@2machine
 :/etc/samba
 Edit the smb.conf to your needs and adjust it to be a bdc:
 domain master=NO
 domain logons=YES
 Make a testparm it should succed like this:
 testparm
 Load smb config files from /etc/samba/smb.conf
 Processing section [netlogon]
 WARNING: The share modes option is deprecated
 Processing section [sysvol]
 WARNING: The share modes option is deprecated
 Processing section [homes]
 Processing section [profiles]
 Processing section [alles]
 Processing section [printers]
 Processing section [print$]
 Loaded services file OK.
 Server role: ROLE_DOMAIN_BDC you are a BDC
 Press enter to see a dump of your service definitions

 Yes very nice!



 Now you are on to copy your slapd.conf and ldap.conf to your new machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 Now important I do the trick with slurpd.

 Sorry, but Slurpd is depricated and no longer available in Openldap since
 2.3
 http://www.openldap.org/doc/admin24/replication.html#Replacing%20Slurpd

 Here is nice overview of the way LDAP currently works:


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 Once you have sync-repl set up on the current master, and a proper
 slapd.conf and ldap.conf file on the new machine, start ldap, then

 smbpasswd -w ldap-master-passwd
 net rpc join -Uadministrator domain name

 Done.






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


[Samba] ads net join with clock skew

2011-02-20 Thread Eyal_Marcus
Hello,

We are upgrading the Samba deployment version from 3.0.37 to 3.5.4 and on the 
new version we've discovered  that we could use 'ads net join' to join the 
domain even when there is a clock skew that is too great (We tried 12 hours, 
days, and even a year, time zone is the same time zone).
Also when changing the server's time (to a different time from the join time), 
it allows us to leave the domain using net ads leave (meaning the Kerberos is 
able to validate the username/password).

On Samba ver. 3.0.37, we tried the same thing, it returned the Clock skew is 
too great.
I've also tried it on Samba 3.6.0 - same result as 3.5.4

When trying to use kinit with the same user/password it fails with the clock 
skew error.

I'm not sure about this but I don't think it is a desired behavior to be able 
to join a domain  when the clock skew is too big.
If there is an explanation for why this is a desired, and good behavior, I 
would appreciate it if you could share it.

Thanks,
Eyal Marcus
eyal_mar...@dell.commailto:meyal_mar...@dell.com

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


[Samba] Reserved WINS name records and Samba WINS

2011-02-20 Thread Chris Smith
Does Samba implement Microsoft's reserved WINS name capability?

From: http://support.microsoft.com/kb/934864
==
To register a reserved name record in WINS, you must register both the
name and the qualified name. (A qualified name is a name that is
followed by a period (.) character.) For example, to register the
reserved WPAD name record in WINS, you must register both of the
following names:

WPAD
WPAD.

When you register both the name and the qualified name, the following
conditions are true:
All reserved name registrations are blocked.
WINS is prevented from replying to WINS clients that request reserved
name record resolution.
==

The article goes on to explain the procedure for an MS WINS server:
==
WPAD example
Use the following procedure for the WPAD reserved name as a model,
and complete the steps for the following items:
Every WINS server
Every reserved name, such as the WPAD reserved name
Any other names that you want to block
Open the WINS Manager.
Create a statically-assigned Internet group that is named WPAD with
a single IP address of 0.0.0.0.
Click Apply.
Remove the address, and then click Apply. You now have a multi-record
entry in WINS that has no records.
Create a statically-assigned Internet group that is named WPAD. with
a single IP address of 0.0.0.0.
Click Apply.
Remove the address, and then click Apply. You now have a multi-record
entry in WINS that has no records.
==

Having only an old NT4 server to work with I can create an Internet
Group name with no IP address. However I don't understand their term
multi-record entry as the old NT4 server only makes a type #20
record when I select the Internet Group radio button and it does not
create type #00 or type #03 records. I'm wondering if this is any
different with newer MS servers.

With Samba's WINS I can add a static entries like:
==
WPAD#20 0 66R
WPAD.#20 0 66R
==
However they simply get deleted unless I use an IP address such as:
==
WPAD#20 0 0.0.0.0 66R
WPAD.#20 0 0.0.0.0 66R
==

Does the qualified name (ending with a .) have any meaning in Samba's WINS?

Does this have the same effect as the MS configuration above? Is WINS
prevented from replying to requests for the reserved name as is
implemented by MS or does it reply with 0.0.0.0 ?

Do I need the #00 and #03 type entries as well to fully reserve these names?

Thank you,

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


Re: [Samba] making BDC samba + ldap server

2011-02-20 Thread tms3









Hi

Ok, and how I config nss_ldap? When I copy all database is included?


Well, the easiest way, for Samba use, is to simply cp your ldap.conf 
file for the ldap client application to nss_ldap.conf--cp ldap.conf 
nss_ldap.conf (this can be a bit confusing, as openldap uses a file 
called ldap.conf for configuring the ldap client as well as a file 
called ldap.conf for configuring basic ldap server process.  The 
server file is generally contained in the directory where 
configuration files are kept in a subdirectory called openldap along 
with files like slapd.conf and is generally a small file witch looks 
something like this:


#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASEdc=mydomain,dc=com
URI ldapi://%2fvar%2frun%2fopenldap%2fldapi 
ldap://192.168.64.2:389

# TLS_CACERT /usr/local/etc/openldap/cacert.pem

#SIZELIMIT  12
#TIMELIMIT  15
#DEREF  never

whereas the ldap.conf for the client is rather lengthy and contains 
quite a bit of information for contacting the ldap server, how the dit 
should be searched, etc.)


And, no, nss_ldap.conf has nothing to do with the ldap server. 
nss_ldap.conf can be used to contact an external ldap server, just as 
the ldap.conf for the ldap client application can/


Sorry for the newbie questions, If any time comes to barcelona contact 
me, you has a beer paid (Daniel too)  :-)


Well, now that's quite a generous offer. Much appreciated.




Thanks and Best Regards


2011/2/20 t...@tms3.com







Hi

Thanks, this howto for me its better. I have other doubt, syncrepl 
needs to be installed or comes integrated with slapd daemon?


It is all part of the openldap suite.





And to transfer all shared samba folders and profile content, when 
it's the better moment? I understand when samba is down or when is up?


Depends on the permissions. However, so long as ALL the files to be 
transferred belong to users in LDAP then, with nss_ldap properly 
configured, any copy that preserves permissions should be fine.








Thanks and Best Regards


2011/2/20 t...@tms3.com







Now you are on to copy your slapd.conf and ldap.conf to your new 
machine:

Ex: scp slapd.conf root@2machine:/etc/openldap

---HOw I can make this If slurpd is 
deprecated? The guide


http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

not's easy to understand, not exist other howto more simple?

Here is another guide. The first link is quite comprehensive.
http://www.zytrax.com/books/ldap/ch7/

The entire online manual is a good read. I highly recommend it.








Now important I do the trick with slurpd. There are many other 
ways but this

is easy.
Slurpd should be installed on your Master an only there.
So go in to the slapd.conf on your master and put a few lines in 
it at the

end.
Be carefull all tabs must fit exact as this example:

replica uri=ldap://IPOFYOUR2MACHINE:389
binddn=cn=youradmin,dc=your,dc=ldap
 suffix=dc=yourc,dc=ldap
 bindmethod=simple
 credentials=securepassword

I understand the part of backup slapd only works with the service 
stopped?


Well Im grateful for all your time :-)

Thanks and Best Regards






2011/2/18 t...@tms3.com







In my hint I think your samba PDC/Ldap is cuurently working well!
First of all install a second machine with the samba and ldap.
Do not start samba, do not start ldap.
The ldap database should be nearly empty ex:/var/lib/ldap

Now copy your smb.conf to your new machine ex: scp 
root@2machine:/etc/samba

Edit the smb.conf to your needs and adjust it to be a bdc:
domain master=NO
domain logons=YES
Make a testparm it should succed like this:
testparm
Load smb config files from /etc/samba/smb.conf
Processing section [netlogon]
WARNING: The share modes option is deprecated
Processing section [sysvol]
WARNING: The share modes option is deprecated
Processing section [homes]
Processing section [profiles]
Processing section [alles]
Processing section [printers]
Processing section [print$]
Loaded services file OK.
Server role: ROLE_DOMAIN_BDC  you are a 
BDC

Press enter to see a dump of your service definitions


Yes very nice!





Now you are on to copy your slapd.conf and ldap.conf to your new 
machine:

Ex: scp slapd.conf root@2machine:/etc/openldap

Now important I do the trick with slurpd.
Sorry, but Slurpd is depricated and no longer available in Openldap 
since 2.3

http://www.openldap.org/doc/admin24/replication.html#Replacing%20Slurpd

Here is nice overview of the way LDAP currently works:

http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

Once you have sync-repl set up on the current master, and a proper 
slapd.conf and ldap.conf file on the new machine, start ldap, then


smbpasswd -w ldap-master-passwd
net rpc join -Uadministrator domain name

Done.












--
To unsubscribe from this list go to the following 

[Samba] samba-vscan-clamav update

2011-02-20 Thread Barry Cisna
Hello All,

Just wanting to post here in regards to samba-vscan-clamav. For a few
versions of Samba there was a small bug in samba-vscan-clamav code .
There was a patch put out several months ago to make this this work once
again with Samba.
This setup does work very nicely in conjunction with clamav.
Just for convenience I have built an binary rpm of this. This rpm was
built using version 3.0333 of Samba. Providing the vfs module of Samba
has not changed this rpm should work on recent versions of Samba as
well.
The rpm itself does all the setup work for you. It was built using
Centos 5.x,so if you are on other Linux Distro *use at your own risk*.
If it fails to work you can simply uninstall the rpm. 

'rpm -e vscanclamav'. 

View the README at the url below.

Hope this may help someone.
LINK:

 ftp://eazylivin.net/server/vscanclamav-3.0.33/

Take Care,
Barry



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


[Samba] [Solved] (Sort of) - Re: Winbind, pdbedit - does not belong to our domain

2011-02-20 Thread J. Pilfold-Bagwell

On 20/02/11 01:02, Bob Miller wrote:
   

Getent passwd works and returns all domain users.

Getent group returns all groups correctly.

Net group map list works and returns correctly mapped groups.

Wbinfo -t returns checking the trust secret for domain BGS via RPC
calls succeeded.

wbinfo --own-domain returns the correct NT domain name

In short, everything seems to work OK until you run wbinfo -u or -g at
which point it sits there until it times out.  Smb.conf is the same as
the other member servers, the net rpc join command  returned success and
a machine account was successfully created in the LDAP directory. The
smb.conf file is here:
 
   

Any suggestions gratefully received.

Thanks,

Julian
 

I recently played a game similar to this one, for me everything worked
but wbinfo -g.  What I did to resolve that was use `net sam
mapunixgroup` for all the domain groups, and all my group stuff started
magically working.  I doubt that will do anything for your wbinfo -u
problem, but it might move you a step forward.  Or it might not; it is
just a suggestion



Bob Miller
334-7117/660-5315
http://computerisms.ca
b...@computerisms.ca
Network, Internet, Server,
and Open Source Solutions


   


Thanks for that.  Gave it a go but no joy so I decided to try making it 
a BDC to see what would happen.  First I tried net setlocalsid with 
the domain sid but it refused to change.  I then changed domain logons 
= no  to yes and tried again and it set the local SID.  Funny thing 
though was that I'd forgotten to set security = to user and had left 
it as domain but it didn't complain. Samba started and winbind worked.


I also have a new print server going on which had the same problem as 
the proxy re: winbind.  After setting this up as a BDC, it also works 
fine.  The interesting thing is that all the other member servers that 
are not functioning as BDCs have local sids that are different to the 
domain sid ( I believe this is how it should be)  and they hooked up 
without a problem.  Luckily, I'm running a Samba PDC so I do the BDC thing.


When I have a bit more time I may pursue this and I'll post any info here.

Cheers,

Julian

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


Re: [Samba] Help needed with Windows7 roaming files.

2011-02-20 Thread Dennis M
Hi Guys,

I've had a check again, looks like roaming profile is already running (sorry
about being misleading),  strange though
no local profile is created (this can be found out when i log in as local
admin and go to the User Profile tab in computer
properties),  and outlook still complains about the data file cannot be
accessed and not sending email  (we have two
email accounts in outlook,  the exchange one is fine, only imap/smtp account
is not sending. )  on Windows XP before
the upgrade everything was fine,  just wondering if there's anyone managed
to get outlook working with windows7 roaming profile.

.profile.V2 looks fine on the server.  it was auto-generated by windows7.

Thanks again.



On Mon, Feb 21, 2011 at 12:30 AM, mr...@freemail.hu mr...@freemail.huwrote:

 Hi Dennis!

 Windows 7 uses the same share for roaming profiles as Windows XP, but
 a different directory. (so, you don't need the profiles.v2 share)
 The profile directories for Win7 ends with .v2. Try to create a
 directory with the following name: \\server1\user1\.profile.v2.
 Perhaps it helps, If doesn't, then here is my config which worked for
 me:

 smb.conf:

 [global]
 ...
 logon path = \\smbserver\profiles\%U
 ...
 [profiles]
path = /opt/samba/profiles
writeable = yes
browseable = yes
read only = no
hide unreadable = yes
directory mask = 0770
force directory mode = 2770
create mask = 0660

 In the profiles share I made two directories for the two profiles:
 john
 john.v2

 Best regards,
 mredd


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


Re: [Samba] Samba Cross-Compilation Problem

2011-02-20 Thread Hitesh Bajaj
Hi
Tool Chain: I am using montavista (mv_pro_5.0)tool chain.Samba Version: I Used 
- samba-3.5.6.Error: error: ADS_STRUCT has no member named ldapThen I Switched 
To Version samba-3.4.10Then I got the Same Error.
EnvironMent I Set Accroding Are:
1) export CONFIG_SITE=/home/hitesh/Sources/config.site2) export 
PREFIX=arm_v5t_le3) export CC=${PREFIX}-gcc4) export LD=${PREFIX}-ld5) 
export NM=${PREFIX}-nm -B6) export AR=${PREFIX}-ar7) export 
RANLIB=${PREFIX}-ranlib8) export LN_S=ln -s
9) export 
PKG_CONFIG_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib/pkgconfig

10)export 
LD_LIBRARY_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/11)export 
LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/12)export 
CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/13) export 
LIBS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib 
-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib

Then I Configured Samba As:
./configure --host=i686 --target=arm-linux --prefix=/home/hitesh/samba/samba-05 
I have already wasted lot of time in this.
Help Will Be Highly Appreciated.
Thanks



--- On Sun, 20/2/11, Richard Sharpe realrichardsha...@gmail.com wrote:

From: Richard Sharpe realrichardsha...@gmail.com
Subject: Re: Samba Cross-Compilation Problem
To: Hitesh Bajaj hitesh_baja...@yahoo.com
Cc: samba-techni...@lists.samba.org, Samba Listing samba@lists.samba.org
Date: Sunday, 20 February, 2011, 7:36 AM

On Fri, Feb 18, 2011 at 8:44 AM, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi,
 I want to cross-compile samba for arm-linux.
 I have host machine: Red Had Enterprise Edition 5.0 and I am not able to 
 cross compile it.
 I tried 3-4 Versions of samba but in vain.
 Can you guide me through compiling process.Which stable version of samba 
 should i use?Step by step cross compilation process.OR
 If you have binaries or package for samba which i can directly use  at my arm 
 machine.

Well, this worked for me with Samba 3.4.4 or thereabouts around March
2010 and later.

You would be better off to tell us:

1. What tool chain you are using?
2. What version of Samba you are trying to cross compile?
3. What specific problem you are seeing?

It really was a matter of simply making sure that the bin directory
for the tool chain was in my path, running configure with the correct
arg to select the tool chain and then running make.

-- 
Regards,
Richard Sharpe


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


[Samba] Samba Cross-Compilation Problem-1

2011-02-20 Thread Hitesh Bajaj
And When I Used Other Version
Version:3.0.27pre1-SVN-build-25068
I Got The Following Error While Configuring.
checking GNU ld release date... 20061020checking whether arm_v5t_le-gcc and cc 
understand -c and -o together... yeschecking that the C compiler understands 
-Werror... crosschecking that the C compiler understands -w2... crosschecking 
that the C compiler understands volatile... yeschecking that the C compiler 
understands negative enum values... configure: error: cannot run test program 
while cross compilingSee `config.log' for more details.




--- On Sun, 20/2/11, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:

From: Hitesh Bajaj hitesh_baja...@yahoo.com
Subject: Re: [Samba] Samba Cross-Compilation Problem
To: Richard Sharpe realrichardsha...@gmail.com, Samba Listing 
samba@lists.samba.org
Date: Sunday, 20 February, 2011, 10:25 PM

Hi
Tool Chain: I am using montavista (mv_pro_5.0)tool chain.Samba Version: I Used 
- samba-3.5.6.Error: error: ADS_STRUCT has no member named ldapThen I Switched 
To Version samba-3.4.10Then I got the Same Error.
EnvironMent I Set Accroding Are:
1) export CONFIG_SITE=/home/hitesh/Sources/config.site2) export 
PREFIX=arm_v5t_le3) export CC=${PREFIX}-gcc4) export LD=${PREFIX}-ld5) 
export NM=${PREFIX}-nm -B6) export AR=${PREFIX}-ar7) export 
RANLIB=${PREFIX}-ranlib8) export LN_S=ln -s
9) export 
PKG_CONFIG_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib/pkgconfig

10)export 
LD_LIBRARY_PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/11)export 
LDFLAGS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/lib/12)export 
CPPFLAGS=-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/13) export 
LIBS=-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib 
-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib

Then I Configured Samba As:
./configure --host=i686 --target=arm-linux --prefix=/home/hitesh/samba/samba-05 
I have already wasted lot of time in this.
Help Will Be Highly Appreciated.
Thanks



--- On Sun, 20/2/11, Richard Sharpe realrichardsha...@gmail.com wrote:

From: Richard Sharpe realrichardsha...@gmail.com
Subject: Re: Samba Cross-Compilation Problem
To: Hitesh Bajaj hitesh_baja...@yahoo.com
Cc: samba-techni...@lists.samba.org, Samba Listing samba@lists.samba.org
Date: Sunday, 20 February, 2011, 7:36 AM

On Fri, Feb 18, 2011 at 8:44 AM, Hitesh Bajaj hitesh_baja...@yahoo.com wrote:
 Hi,
 I want to cross-compile samba for arm-linux.
 I have host machine: Red Had Enterprise Edition 5.0 and I am not able to 
 cross compile it.
 I tried 3-4 Versions of samba but in vain.
 Can you guide me through compiling process.Which stable version of samba 
 should i use?Step by step cross compilation process.OR
 If you have binaries or package for samba which i can directly use  at my arm 
 machine.

Well, this worked for me with Samba 3.4.4 or thereabouts around March
2010 and later.

You would be better off to tell us:

1. What tool chain you are using?
2. What version of Samba you are trying to cross compile?
3. What specific problem you are seeing?

It really was a matter of simply making sure that the bin directory
for the tool chain was in my path, running configure with the correct
arg to select the tool chain and then running make.

-- 
Regards,
Richard Sharpe


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


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


Re: [Samba] making BDC samba + ldap server

2011-02-20 Thread marcos gonzalez
Ok in my server the ldap config is inside /etc/ and this file nss_ldap it's
inside /etc/ldap/. i didn't understand why pass this but now I understand
all

Thanks




 Hi

 Ok, and how I config nss_ldap? When I copy all database is included?

 Well, the easiest way, for Samba use, is to simply cp your ldap.conf file
 for the ldap client application to nss_ldap.conf--cp ldap.conf nss_ldap.conf
 (this can be a bit confusing, as openldap uses a file called ldap.conf for
 configuring the ldap client as well as a file called ldap.conf for
 configuring basic ldap server process.  The server file is generally
 contained in the directory where configuration files are kept in a
 subdirectory called openldap along with files like slapd.conf and is
 generally a small file witch looks something like this:

 #
 # LDAP Defaults
 #

 # See ldap.conf(5) for details
 # This file should be world readable but not world writable.

 BASEdc=mydomain,dc=com
 URI ldapi://%2fvar%2frun%2fopenldap%2fldapi ldap://192.168.64.2:389
 # TLS_CACERT /usr/local/etc/openldap/cacert.pem

 #SIZELIMIT  12
 #TIMELIMIT  15
 #DEREF  never

 whereas the ldap.conf for the client is rather lengthy and contains quite a
 bit of information for contacting the ldap server, how the dit should be
 searched, etc.)

 And, no, nss_ldap.conf has nothing to do with the ldap server.
 nss_ldap.conf can be used to contact an external ldap server, just as the
 ldap.conf for the ldap client application can/

 Sorry for the newbie questions, If any time comes to barcelona contact me,
 you has a beer paid (Daniel too)  :-)

 Well, now that's quite a generous offer. Much appreciated.



 Thanks and Best Regards

 2011/2/20 t...@tms3.com



 Hi

 Thanks, this howto for me its better. I have other doubt, syncrepl needs
 to be installed or comes integrated with slapd daemon?

 It is all part of the openldap suite.



 And to transfer all shared samba folders and profile content, when it's
 the better moment? I understand when samba is down or when is up?

 Depends on the permissions. However, so long as ALL the files to be
 transferred belong to users in LDAP then, with nss_ldap properly configured,
 any copy that preserves permissions should be fine.



 Thanks and Best Regards

 2011/2/20 t...@tms3.com



 Now you are on to copy your slapd.conf and ldap.conf to your new machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 ---HOw I can make this If slurpd is deprecated?
 The guide


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 not's easy to understand, not exist other howto more simple?

 Here is another guide. The first link is quite comprehensive.
 http://www.zytrax.com/books/ldap/ch7/

 The entire online manual is a good read. I highly recommend it.



 Now important I do the trick with slurpd. There are many other ways
 but this
 is easy.
 Slurpd should be installed on your Master an only there.
 So go in to the slapd.conf on your master and put a few lines in it
 at the
 end.
 Be carefull all tabs must fit exact as this example:

 replica uri=ldap://IPOFYOUR2MACHINE:389
 binddn=cn=youradmin,dc=your,dc=ldap
  suffix=dc=yourc,dc=ldap
  bindmethod=simple
  credentials=securepassword

 I understand the part of backup slapd only works with the service
 stopped?

 Well Im grateful for all your time :-)

 Thanks and Best Regards



 2011/2/18 t...@tms3.com



 In my hint I think your samba PDC/Ldap is cuurently working well!
 First of all install a second machine with the samba and ldap.
 Do not start samba, do not start ldap.
 The ldap database should be nearly empty ex:/var/lib/ldap

 Now copy your smb.conf to your new machine ex: scp root@2machine
 :/etc/samba
 Edit the smb.conf to your needs and adjust it to be a bdc:
 domain master=NO
 domain logons=YES
 Make a testparm it should succed like this:
 testparm
 Load smb config files from /etc/samba/smb.conf
 Processing section [netlogon]
 WARNING: The share modes option is deprecated
 Processing section [sysvol]
 WARNING: The share modes option is deprecated
 Processing section [homes]
 Processing section [profiles]
 Processing section [alles]
 Processing section [printers]
 Processing section [print$]
 Loaded services file OK.
 Server role: ROLE_DOMAIN_BDC you are a BDC
 Press enter to see a dump of your service definitions

 Yes very nice!



 Now you are on to copy your slapd.conf and ldap.conf to your new
 machine:
 Ex: scp slapd.conf root@2machine:/etc/openldap

 Now important I do the trick with slurpd.

 Sorry, but Slurpd is depricated and no longer available in Openldap
 since 2.3
 http://www.openldap.org/doc/admin24/replication.html#Replacing%20Slurpd

 Here is nice overview of the way LDAP currently works:


 http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html

 Once you have sync-repl set up on the current master, and a proper
 slapd.conf and ldap.conf 

[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Volker Lendecke
The branch, master has been updated
   via  ac19b39 s3: Fix return code of pdb_ads_getsamupriv if the user does 
not exist
   via  5f953b1 s3: Add ACB_NORMAL to workstations, match RPC-SAMR
   via  351b672 s3: Make QueryDispInfo and QueryInfo match for guest
   via  3e4da94 s3: NO_SUCH_USER is a lot more likely than NO_MEMORY
   via  51b84a9 s3: Convert init_system_info to NTSTATUS
   via  88f5215 s3: Slightly simplify Get_Pwnam_alloc
   via  13bfae9 s3: Fix some nonempty blank lines
  from  8ad127e s3:tests: fix the smbclient_s3 test for multiple users 
running it.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit ac19b3957774193b178f9cb61829384b70fc2126
Author: Volker Lendecke v...@samba.org
Date:   Sat Feb 19 18:25:25 2011 +0100

s3: Fix return code of pdb_ads_getsamupriv if the user does not exist

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Sun Feb 20 11:12:01 CET 2011 on sn-devel-104

commit 5f953b1ef82ee280d58bc41a125d3e51cc26f38c
Author: Volker Lendecke v...@samba.org
Date:   Sat Feb 19 17:52:50 2011 +0100

s3: Add ACB_NORMAL to workstations, match RPC-SAMR

commit 351b672426dfba61b7994e59350f4ee3c6d49bc0
Author: Volker Lendecke v...@samba.org
Date:   Sat Feb 19 17:44:48 2011 +0100

s3: Make QueryDispInfo and QueryInfo match for guest

commit 3e4da946699f77abd40c9eb03c2cf67263149e16
Author: Volker Lendecke v...@samba.org
Date:   Sat Feb 19 23:20:34 2011 +0100

s3: NO_SUCH_USER is a lot more likely than NO_MEMORY

commit 51b84a9ed7eaa7e38e2279a825290976bfa40177
Author: Volker Lendecke v...@samba.org
Date:   Sat Feb 19 20:05:07 2011 +0100

s3: Convert init_system_info to NTSTATUS

commit 88f52155607ccc653d4f4610557bfa10b83e4c73
Author: Volker Lendecke v...@samba.org
Date:   Mon Feb 14 21:41:00 2011 +0100

s3: Slightly simplify Get_Pwnam_alloc

commit 13bfae95e7eae9cdca0c20af7b6c95138504d76a
Author: Volker Lendecke v...@samba.org
Date:   Mon Feb 14 21:39:10 2011 +0100

s3: Fix some nonempty blank lines

---

Summary of changes:
 source3/auth/auth_util.c|9 -
 source3/include/proto.h |2 +-
 source3/lib/username.c  |9 +++--
 source3/passdb/pdb_ads.c|   37 +
 source3/smbd/sec_ctx.c  |   12 ++--
 source3/smbd/server.c   |6 --
 source3/winbindd/winbindd.c |6 --
 7 files changed, 51 insertions(+), 30 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 1c036ff..3143710 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -757,7 +757,7 @@ static NTSTATUS make_new_server_info_system(TALLOC_CTX 
*mem_ctx,
 
pwd = getpwuid_alloc(mem_ctx, sec_initial_uid());
if (pwd == NULL) {
-   return NT_STATUS_NO_MEMORY;
+   return NT_STATUS_NO_SUCH_USER;
}
 
status = make_serverinfo_from_username(mem_ctx,
@@ -918,13 +918,12 @@ NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
 
 static struct auth_serversupplied_info *system_info = NULL;
 
-bool init_system_info(void)
+NTSTATUS init_system_info(void)
 {
if (system_info != NULL)
-   return True;
+   return NT_STATUS_OK;
 
-   return NT_STATUS_IS_OK(make_new_server_info_system(NULL,
-  system_info));
+   return make_new_server_info_system(NULL, system_info);
 }
 
 NTSTATUS make_server_info_system(TALLOC_CTX *mem_ctx,
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a2cc222..f6c77b6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -143,7 +143,7 @@ NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx,
 struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
 const struct 
auth_serversupplied_info *src);
 bool init_guest_info(void);
-bool init_system_info(void);
+NTSTATUS init_system_info(void);
 bool server_info_set_session_key(struct auth_serversupplied_info *info,
 DATA_BLOB session_key);
 NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
diff --git a/source3/lib/username.c b/source3/lib/username.c
index afe83ac..7d3a541 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -9,12 +9,12 @@
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-   
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
-   
+

[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Volker Lendecke
The branch, master has been updated
   via  b85a323 s3: Improve a debug message, we have more than pdb_tdb.
   via  e99d1de s3: Protect tldap_errstr against a NULL ld
  from  ac19b39 s3: Fix return code of pdb_ads_getsamupriv if the user does 
not exist

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit b85a323d02c69beffc9e20fc2164930cc5e91234
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 15:20:26 2011 +0100

s3: Improve a debug message, we have more than pdb_tdb.

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Sun Feb 20 16:50:05 CET 2011 on sn-devel-104

commit e99d1de3c4fe3c1ff678270f51ef7e6d3812e878
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 15:08:41 2011 +0100

s3: Protect tldap_errstr against a NULL ld

---

Summary of changes:
 source3/groupdb/mapping.c |2 +-
 source3/lib/tldap_util.c  |4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 837f84a..d76e344 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -138,7 +138,7 @@ bool get_domain_group_from_sid(struct dom_sid sid, 
GROUP_MAP *map)
return False;
}
 
-   DEBUG(10, (get_domain_group_from_sid: SID found in the TDB\n));
+   DEBUG(10, (get_domain_group_from_sid: SID found in passdb\n));
 
/* if it's not a domain group, continue */
if (map-sid_name_use!=SID_NAME_DOM_GRP) {
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c
index b83a1b7..8f7ad88 100644
--- a/source3/lib/tldap_util.c
+++ b/source3/lib/tldap_util.c
@@ -337,7 +337,9 @@ const char *tldap_errstr(TALLOC_CTX *mem_ctx, struct 
tldap_context *ld, int rc)
const char *ld_error = NULL;
char *res;
 
-   ld_error = tldap_msg_diagnosticmessage(tldap_ctx_lastmsg(ld));
+   if (ld != NULL) {
+   ld_error = tldap_msg_diagnosticmessage(tldap_ctx_lastmsg(ld));
+   }
res = talloc_asprintf(mem_ctx, LDAP error %d (%s), %s, rc,
  tldap_err2string(rc),
  ld_error ? ld_error : unknown);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Jelmer Vernooij
The branch, master has been updated
   via  fd880fd s4-version: Fix version finding for bzr branches.
   via  fce1069 ldb-samba: Add missing dependency on pyldb-util.
  from  b85a323 s3: Improve a debug message, we have more than pdb_tdb.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit fd880fda0d19bf261368c761b2e92314613357ae
Author: Jelmer Vernooij jel...@samba.org
Date:   Sun Feb 20 16:28:54 2011 +0100

s4-version: Fix version finding for bzr branches.

Autobuild-User: Jelmer Vernooij jel...@samba.org
Autobuild-Date: Sun Feb 20 17:35:45 CET 2011 on sn-devel-104

commit fce10699256bce6b9f789ac2a63904b45dde4246
Author: Jelmer Vernooij jel...@samba.org
Date:   Sun Jan 30 10:58:47 2011 +0100

ldb-samba: Add missing dependency on pyldb-util.

---

Summary of changes:
 buildtools/wafsamba/samba_version.py |2 +-
 source4/lib/ldb-samba/wscript_build  |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_version.py 
b/buildtools/wafsamba/samba_version.py
index 5069ea3..4fe280e 100644
--- a/buildtools/wafsamba/samba_version.py
+++ b/buildtools/wafsamba/samba_version.py
@@ -260,6 +260,6 @@ def load_version(env=None):
 if not env:
 env = samba_utils.LOAD_ENVIRONMENT()
 
-version = samba_version_file(./VERSION, .., env)
+version = samba_version_file(./VERSION, ., env)
 Utils.g_module.VERSION = version.STRING
 return version
diff --git a/source4/lib/ldb-samba/wscript_build 
b/source4/lib/ldb-samba/wscript_build
index fddf12f..5379801 100644
--- a/source4/lib/ldb-samba/wscript_build
+++ b/source4/lib/ldb-samba/wscript_build
@@ -9,7 +9,7 @@ bld.SAMBA_LIBRARY('ldbsamba',
   autoproto='ldif_handlers_proto.h',
   public_deps='ldb',
   public_headers='ldb_wrap.h',
-  deps='security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap 
samdb-common SAMDB_SCHEMA tdb',
+  deps='security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap 
samdb-common SAMDB_SCHEMA tdb pyldb-util',
   private_library=True
   )
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Volker Lendecke
The branch, master has been updated
   via  367b35b s3: Fix pdb_ads_enum_aliasmem for empty aliases
   via  ff6c175 s3: Support SetGroupInfo in pdb_ads
   via  9512603 s3: Fix a debug message
   via  4c45078 s3: Fix pdb_ads_enum_group_members for empty groups
   via  288b396 s3: Fix error returns in pdb_ads_mod_groupmem
  from  fd880fd s4-version: Fix version finding for bzr branches.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 367b35b1ffd353070b9dca4f00e3089f6788b266
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 19:55:01 2011 +0100

s3: Fix pdb_ads_enum_aliasmem for empty aliases

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Sun Feb 20 21:40:40 CET 2011 on sn-devel-104

commit ff6c175ae6cfb10d466db2920a9a7f9e67709ede
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 18:39:30 2011 +0100

s3: Support SetGroupInfo in pdb_ads

commit 95126034b02f0536b521a250a7935fd1472c77d2
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 18:39:09 2011 +0100

s3: Fix a debug message

commit 4c45078d8f8d7cde4ecb5e7b08d96b9abd538ea5
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 17:53:26 2011 +0100

s3: Fix pdb_ads_enum_group_members for empty groups

commit 288b396411bfe8f8eb7353193991a1910c97751e
Author: Volker Lendecke v...@samba.org
Date:   Sun Feb 20 17:41:22 2011 +0100

s3: Fix error returns in pdb_ads_mod_groupmem

---

Summary of changes:
 source3/passdb/pdb_ads.c |   86 +-
 1 files changed, 77 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index ad38256..f74fb12 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -744,7 +744,9 @@ static NTSTATUS pdb_ads_update_login_attempts(struct 
pdb_methods *m,
 }
 
 static NTSTATUS pdb_ads_getgrfilter(struct pdb_methods *m, GROUP_MAP *map,
-   const char *filter)
+   const char *filter,
+   TALLOC_CTX *mem_ctx,
+   struct tldap_message **pmsg)
 {
struct pdb_ads_state *state = talloc_get_type_abort(
m-private_data, struct pdb_ads_state);
@@ -764,7 +766,7 @@ static NTSTATUS pdb_ads_getgrfilter(struct pdb_methods *m, 
GROUP_MAP *map,
return NT_STATUS_LDAP(rc);
}
if (talloc_array_length(group) != 1) {
-   DEBUG(10, (Expected 1 user, got %d\n,
+   DEBUG(10, (Expected 1 group, got %d\n,
   (int)talloc_array_length(group)));
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
@@ -806,6 +808,9 @@ static NTSTATUS pdb_ads_getgrfilter(struct pdb_methods *m, 
GROUP_MAP *map,
map-comment[0] = '\0';
}
 
+   if (pmsg != NULL) {
+   *pmsg = talloc_move(mem_ctx, group[0]);
+   }
TALLOC_FREE(group);
return NT_STATUS_OK;
 }
@@ -823,7 +828,7 @@ static NTSTATUS pdb_ads_getgrsid(struct pdb_methods *m, 
GROUP_MAP *map,
return NT_STATUS_NO_MEMORY;
}
 
-   status = pdb_ads_getgrfilter(m, map, filter);
+   status = pdb_ads_getgrfilter(m, map, filter, NULL, NULL);
TALLOC_FREE(filter);
return status;
 }
@@ -849,7 +854,7 @@ static NTSTATUS pdb_ads_getgrnam(struct pdb_methods *m, 
GROUP_MAP *map,
return NT_STATUS_NO_MEMORY;
}
 
-   status = pdb_ads_getgrfilter(m, map, filter);
+   status = pdb_ads_getgrfilter(m, map, filter, NULL, NULL);
TALLOC_FREE(filter);
return status;
 }
@@ -1003,7 +1008,64 @@ static NTSTATUS pdb_ads_add_group_mapping_entry(struct 
pdb_methods *m,
 static NTSTATUS pdb_ads_update_group_mapping_entry(struct pdb_methods *m,
   GROUP_MAP *map)
 {
-   return NT_STATUS_NOT_IMPLEMENTED;
+   struct pdb_ads_state *state = talloc_get_type_abort(
+   m-private_data, struct pdb_ads_state);
+   struct tldap_context *ld;
+   struct tldap_mod *mods = NULL;
+   char *filter;
+   struct tldap_message *existing;
+   char *dn;
+   GROUP_MAP existing_map;
+   int rc, num_mods = 0;
+   bool ret;
+   NTSTATUS status;
+
+   ld = pdb_ads_ld(state);
+   if (ld == NULL) {
+   return NT_STATUS_LDAP(TLDAP_SERVER_DOWN);
+   }
+
+   filter = talloc_asprintf(talloc_tos(),
+((objectsid=%s)(objectclass=group)),
+sid_string_talloc(talloc_tos(), map-sid));
+   if (filter == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }
+   status = pdb_ads_getgrfilter(m, existing_map, filter,
+  

[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Kamen Mazdrashki
The branch, master has been updated
   via  1273d50 s4/drs-tests:Blackbox test to verify DsReplicaSync handling
   via  bfb0adf s4/samba.tests: Raise BlackboxProcessError exception in 
case check_output method fails
   via  348295b s4/samba.tests: Extend CalledProcessError class to store 
STDOUT and STDERR for a failed rocess call
   via  adfb618 s4/drs-tests: Allow _net_drs_replicate to force replication 
and return output from command execution
   via  288e20c s4/drs-tests: Split samba-tool command line generation into 
separate method
   via  75856d5 s4/drs-tests: Inherit DrsReplSchemaTestCase from 
DrsBaseTestCase
   via  60bb40c s4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCase
   via  fcd4aa8 s4/drs-tests: Inherit DrsDeleteObjectTestCase from 
DrsBaseTestCase
   via  e210391 s4/drs-tests: Add a base class to hold common functionality 
for all DRS python tests
  from  367b35b s3: Fix pdb_ads_enum_aliasmem for empty aliases

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 1273d504f2abb6b87c45bf664b56c1902ba99219
Author: Kamen Mazdrashki kame...@samba.org
Date:   Sun Feb 20 04:21:32 2011 +0200

s4/drs-tests:Blackbox test to verify DsReplicaSync handling

DsReplicaSync is indirectly called using 'samba-tool drs options' command
to enable/disable replication and 'samba-tool drs replicate' command
to trigger inbound replication cycle

Autobuild-User: Kamen Mazdrashki kame...@samba.org
Autobuild-Date: Sun Feb 20 23:03:03 CET 2011 on sn-devel-104

commit bfb0adf0b450452e3daf0b60269768b77c6291c3
Author: Kamen Mazdrashki kame...@samba.org
Date:   Sun Feb 20 04:17:25 2011 +0200

s4/samba.tests: Raise BlackboxProcessError exception in case check_output 
method fails

This way the caller gets the chance to receive STDOUT and STDERR for
a failed process.
We may use this info to check if a process has failed properly,
e.g. with expected output

commit 348295bf8ac5f39e5be23c0a6adb8c31e64766a2
Author: Kamen Mazdrashki kame...@samba.org
Date:   Sun Feb 20 04:15:08 2011 +0200

s4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR 
for a failed rocess call

commit adfb618ef5f7307bb5cf68185c6055375196db3a
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 04:27:19 2011 +0200

s4/drs-tests: Allow _net_drs_replicate to force replication and return 
output from command execution

commit 288e20cfb7c7e39bfd07626c77a9a0eaa8955bcf
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 04:09:45 2011 +0200

s4/drs-tests: Split samba-tool command line generation into separate method

so we can use to exec samba-tool passing different commands

commit 75856d53cb0d733c4df3a58708eb9f272260c176
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 03:25:20 2011 +0200

s4/drs-tests: Inherit DrsReplSchemaTestCase from DrsBaseTestCase

and remove duplicated functionality

commit 60bb40cd25bc8fd037f6a5e29e6fa3d62a88533e
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 03:25:02 2011 +0200

s4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCase

and remove duplicated functionality

commit fcd4aa84edb79d40e3616918b710b8a3a277f4a8
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 03:24:08 2011 +0200

s4/drs-tests: Inherit DrsDeleteObjectTestCase from DrsBaseTestCase

and remove duplicated functionality

commit e21039110cfa6303f2f7de14918d4492298ad996
Author: Kamen Mazdrashki kame...@samba.org
Date:   Fri Feb 18 02:54:50 2011 +0200

s4/drs-tests: Add a base class to hold common functionality for all DRS 
python tests

---

Summary of changes:
 source4/scripting/python/samba/tests/__init__.py |   17 +++-
 source4/torture/drs/python/delete_object.py  |   46 +-
 source4/torture/drs/python/drs_base.py   |  111 ++
 source4/torture/drs/python/fsmo.py   |   37 +---
 source4/torture/drs/python/repl_schema.py|   47 +-
 source4/torture/drs/python/replica_sync.py   |   91 ++
 6 files changed, 223 insertions(+), 126 deletions(-)
 create mode 100644 source4/torture/drs/python/drs_base.py
 create mode 100644 source4/torture/drs/python/replica_sync.py


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/tests/__init__.py 
b/source4/scripting/python/samba/tests/__init__.py
index d6b962c..58e4130 100644
--- a/source4/scripting/python/samba/tests/__init__.py
+++ b/source4/scripting/python/samba/tests/__init__.py
@@ -121,6 +121,19 @@ class ValidNetbiosNameTests(TestCase):
 self.assertFalse(samba.valid_netbios_name(*BLA))
 
 
+class BlackboxProcessError(subprocess.CalledProcessError):
+This exception is raised when a process run by 

[SCM] Samba Shared Repository - branch master updated

2011-02-20 Thread Jelmer Vernooij
The branch, master has been updated
   via  82fa772 Fix missing dependency on libreplace.
  from  1273d50 s4/drs-tests:Blackbox test to verify DsReplicaSync handling

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 82fa772fa2dd6209d822ce0769364809233b9db7
Author: Jelmer Vernooij jel...@samba.org
Date:   Mon Feb 21 00:26:12 2011 +0100

Fix missing dependency on libreplace.

Autobuild-User: Jelmer Vernooij jel...@samba.org
Autobuild-Date: Mon Feb 21 01:17:33 CET 2011 on sn-devel-104

---

Summary of changes:
 lib/util/charset/wscript_build |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/charset/wscript_build b/lib/util/charset/wscript_build
index 7dcd189..93b4733 100644
--- a/lib/util/charset/wscript_build
+++ b/lib/util/charset/wscript_build
@@ -10,7 +10,7 @@ if bld.env._SAMBA_BUILD_ == 4:
 
 bld.SAMBA_SUBSYSTEM('ICONV_WRAPPER',
 source='iconv.c',
-public_deps='iconv')
+public_deps='iconv replace')
 
 bld.SAMBA_SUBSYSTEM('CODEPOINTS',
source='codepoints.c',


-- 
Samba Shared Repository