[Samba] samba+ldap two domains db sync?

2010-01-11 Thread Alberto Moreno
 Hi people.

  I have 2 domains running samba with ldap(Centos 5.x), I would like
to know this.

  I would like to have the same DB in both sites, if I change the
users just would like to do it 1 time.

  Is possible to sync both ldap servers every time I change something
in ldap? or a better way to do it?

  Thanks!!!

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


[Samba] join samba server to openldap/kerberos directory

2010-01-11 Thread Anton Starikov
I googled a lot but didn't find any answer.

My problem is next:

I have Openldap/kerberos directory.
I have samba (samba-A), which acts as NT PDC and use ldap/kerberos as backend.

I have another samba server (samba-B) which I want to authenticate users in my 
directory.
Of course I can join it to my samba NT PDC, it works, but by this a loose 
ability to authenticate via  kerberos tickets. 

Is it possible for samba-B to see my directory as AD? In order to be able net 
ads join and have full set of possible authentications for samba-B?

What kind of records should I add to my Openldap/Kerberos directory in order to 
be able to perform net join ADS?
Obviously I can't have full AD functionality here, but I don't need one. I just 
want it to simulate AD enough that second samba server can join to use it for 
authentication.

AFAIK, if my KDC is based on MIT there is other workaround in case of 
security=user, but there are some extra reasons why I would be in ADS mode.

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


[Samba] [samba] User managing via USRMGR.EXE is impossble

2010-01-11 Thread Сергей
Hello, All!

I have domain network. But user managing via USRMGR.EXE is impossble.
When I run USRMGR.EXE I get a window:
The tag is invalid. Do you want to select another domain to administer?

At this time at Samba's log:
[2010/01/11 14:12:07,  1] librpc/ndr/ndr.c:ndr_push_error(493)
  ndr_push_error(5): Bad char conversion
[2010/01/11 14:12:07,  0] rpc_server/srv_pipe.c:api_rpcTNP(2381)
  api_rpcTNP: samr: SAMR_QUERYDISPLAYINFO failed.

How to find source of error? 

Samba Version 3.3.9, Microsoft Windows XP [Версия 5.1.2600] SP3

Bye. Serg.


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

[Samba] Samba Group Mapping

2010-01-11 Thread Brajesh Shrivastava

Hi All

I have Samba 3.2.11 installed on Suse (sles 10) machine. I am playing 
around the group mapping functionality. When I map a linux group to nt 
group. I can see that groups is visible on windows client. But, if I 
restart the smbd daemon (while changing the scurity mode for ads to user 
or vice versa), I can no more see the mapped group to the the Windows 
client. Though, I was able to see the mapping in the output of 'net 
groupmap list' command. I will request you to please let me know the 
answer of following questions:


1. Is there any way to see the mapped group to the windows client even 
after changing the security mode or restarting the samba server?


2. Does  samba store the group mapping in group_mapping.ldb file. Will 
it be enough to copy this file to other node to get cluster wise 
solution for group mapping or do I need to follow any other steps.


3. Can I map built-in domain group like Domain Admins, Domain Users 
etc to the Unix group? If yes, should I need to keep SID fixed by 
specifying rid value?


4. If I want to do the manual mapping, do I need to specify parameter 
'add group script' in smb.conf? When is this option called?



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


Re: [Samba] samba+ldap two domains db sync?

2010-01-11 Thread Rob Shinn

Alberto Moreno wrote:

Is possible to sync both ldap servers every time I change something
in ldap? or a better way to do it?Alberto Moreno wrote:
You could probably do this with OpenLDAP's syncrepl replication 
facility.  You may also wish to consider combining everything into one 
LDAP database, containing two different Samba domains, with a common OU 
for user accounts.  You could keep the LDAP servers as they are, just 
set up one as a secondary LDAP server using syncrepl.  That would have 
the advantage of centralizing everything and ease user administration, 
since users created in one domain would automatically be included in both.


Without knowing the specifics, however, it's hard to say to which way 
would be best.


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


Re: [Samba] samba+ldap two domains db sync?

2010-01-11 Thread Gaiseric Vandal

On 01/11/10 09:31, Rob Shinn wrote:

Alberto Moreno wrote:

Is possible to sync both ldap servers every time I change something
in ldap? or a better way to do it?Alberto Moreno wrote:
You could probably do this with OpenLDAP's syncrepl replication 
facility.  You may also wish to consider combining everything into one 
LDAP database, containing two different Samba domains, with a common 
OU for user accounts.  You could keep the LDAP servers as they are, 
just set up one as a secondary LDAP server using syncrepl.  That would 
have the advantage of centralizing everything and ease user 
administration, since users created in one domain would automatically 
be included in both.


Without knowing the specifics, however, it's hard to say to which way 
would be best.


I don't think one user in LDAP could be in two different domains-  each 
user has to have a distinct SambaSID entry.


I use Sun's Directory Server for my LDAP backend-  it was already in 
place for another project which is why I went with it rather than with 
OpenLDAP. It supports replication between ldap servers and has a GUI 
for setting up the replication parameters.Although, too be fair, 
there is a bit of a learning curve with this product.




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


Re: [Samba] samba+ldap two domains db sync?

2010-01-11 Thread Rob Shinn

Gaiseric Vandal wrote:


I don't think one user in LDAP could be in two different domains-  
each user has to have a distinct SambaSID entry.




Ooomph! *slaps forehead*.  You're right.  That's what I get for posting 
before I've had my coffeee.


I stand by my original statement that OpenLDAP's syncrepl would work, 
though.




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


Re: [Samba] Samba Group Mapping

2010-01-11 Thread Gaiseric Vandal

On 01/11/10 06:48, Brajesh Shrivastava wrote:

Hi All

I have Samba 3.2.11 installed on Suse (sles 10) machine. I am playing 
around the group mapping functionality. When I map a linux group to nt 
group. I can see that groups is visible on windows client. But, if I 
restart the smbd daemon (while changing the scurity mode for ads to 
user or vice versa), I can no more see the mapped group to the the 
Windows client. Though, I was able to see the mapping in the output of 
'net groupmap list' command. I will request you to please let me know 
the answer of following questions:


1. Is there any way to see the mapped group to the windows client even 
after changing the security mode or restarting the samba server?


2. Does  samba store the group mapping in group_mapping.ldb file. Will 
it be enough to copy this file to other node to get cluster wise 
solution for group mapping or do I need to follow any other steps.


3. Can I map built-in domain group like Domain Admins, Domain 
Users etc to the Unix group? If yes, should I need to keep SID fixed 
by specifying rid value?


4. If I want to do the manual mapping, do I need to specify parameter 
'add group script' in smb.conf? When is this option called?



Thanks a lot in advance.


Group mappings should be persistent in either the local TDB file or the 
LDAP backend, depending on how you are configuring your machine.
There are some group mappings that you must have.


I have found that I can copy a TBD file for group mapping between 
machines BUT your group mapping requirements may be a little different 
for a domain controller vs a member server.It is probably safer to 
reenter the commands on the other machines.



The member server may need the local Administrators and Users groups 
defined (see below) that I don't think you need on the domain 
controllers.The rid values for these well known groups is defined by 
Microsoft and available in the Samba docn.


e.g

net groupmap add ntgroup=Domain Admins unixgroup=10512 rid=512

net groupmap add ntgroup=Domain Users unixgroup=10513 rid=513

net groupmap add ntgroup=Domain Guests unixgroup=10514 rid=514

net groupmap add ntgroup=Domain Controllers unixgroup=10516  rid=516

net groupmap add ntgroup=Domain Computers unixgroup=10515  rid=515


net groupmap add ntgroup=Administrators unixgroup=10544 rid=544 type=local

net groupmap add ntgroup=Users unixgroup=10545 rid=545 type=local

net groupmap add ntgroup=Guests unixgroup=nobody rid=546 type=local







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


Re: [Samba] Samba Group Mapping

2010-01-11 Thread Brajesh Shrivastava

Gaiseric Vandal wrote:

On 01/11/10 06:48, Brajesh Shrivastava wrote:

Hi All

I have Samba 3.2.11 installed on Suse (sles 10) machine. I am playing 
around the group mapping functionality. When I map a linux group to 
nt group. I can see that groups is visible on windows client. But, if 
I restart the smbd daemon (while changing the scurity mode for ads to 
user or vice versa), I can no more see the mapped group to the the 
Windows client. Though, I was able to see the mapping in the output 
of 'net groupmap list' command. I will request you to please let me 
know the answer of following questions:


1. Is there any way to see the mapped group to the windows client 
even after changing the security mode or restarting the samba server?


2. Does  samba store the group mapping in group_mapping.ldb file. 
Will it be enough to copy this file to other node to get cluster wise 
solution for group mapping or do I need to follow any other steps.


3. Can I map built-in domain group like Domain Admins, Domain 
Users etc to the Unix group? If yes, should I need to keep SID fixed 
by specifying rid value?


4. If I want to do the manual mapping, do I need to specify parameter 
'add group script' in smb.conf? When is this option called?



Thanks a lot in advance.


Group mappings should be persistent in either the local TDB file or 
the LDAP backend, depending on how you are configuring your 
machine.There are some group mappings that you must have.


I have found that I can copy a TBD file for group mapping between 
machines BUT your group mapping requirements may be a little different 
for a domain controller vs a member server.It is probably safer to 
reenter the commands on the other machines.



The member server may need the local Administrators and Users 
groups defined (see below) that I don't think you need on the domain 
controllers.The rid values for these well known groups is defined 
by Microsoft and available in the Samba docn.


e.g

net groupmap add ntgroup=Domain Admins unixgroup=10512 rid=512

net groupmap add ntgroup=Domain Users unixgroup=10513 rid=513

net groupmap add ntgroup=Domain Guests unixgroup=10514 rid=514

net groupmap add ntgroup=Domain Controllers unixgroup=10516  rid=516

net groupmap add ntgroup=Domain Computers unixgroup=10515  rid=515


net groupmap add ntgroup=Administrators unixgroup=10544 rid=544 
type=local


net groupmap add ntgroup=Users unixgroup=10545 rid=545 type=local

net groupmap add ntgroup=Guests unixgroup=nobody rid=546 type=local





Hi Gaiseric

Thanks a lot for your prompt reply. Still there are some confusion:

Do I need to specify the uid of the Unix user?  I think name should also 
work. Let Domain Admins SID 512 is mapped with unix group gid 10234. 
If, I change group permission on a file to Domain Admins, what gid 
value will be assigned to that file? Will it be 10512 or 10234?


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


[Samba] Group mapping is not showing correct value

2010-01-11 Thread Brajesh Shrivastava

Hi All

I have created a group 'test' which has the following users:

brajesh_01:/var/log/samba # getent group |grep test
test:!:13159:brajesh,yatish,usr1
brajesh_01:/var/log/samba #


I mapped this user to ntgroup user, 'Web Master':

brajesh_01:/var/log/samba # net  groupmap add ntgroup=We Master 
unixgroup=test

No rid or sid specified, choosing a RID
Got RID 27319
Successfully added group We Master to the mapping db as a domain group
brajesh_01:/var/log/samba #

Output of 'net groupmap list' command shows the correct output:

brajesh_01:/var/log/samba # net groupmap list
We Master (S-1-5-21-3348154469-3767538395-1505805052-27319) - test
brajesh_01:/var/log/samba #

But when I try to see the output of 'net rpc group members' command, it 
is giving an error message. Please see here:


brajesh_01:/var/log/samba # net rpc group members Web Master  -U 
administrator -d 1

Enter administrator's password:
Couldn't find group Web Master
[2010/01/11 10:35:33,  1] utils/net_rpc.c:run_rpc_command(181)
 rpc command function failed! (NT_STATUS_NONE_MAPPED)
brajesh_01:/var/log/samba #

I am new for group mapping feature. Please let me know where I am doing 
wrong.


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


Re: [Samba] Samba Group Mapping

2010-01-11 Thread Gaiseric Vandal

On 01/11/10 10:13, Brajesh Shrivastava wrote:

Gaiseric Vandal wrote:

On 01/11/10 06:48, Brajesh Shrivastava wrote:

Hi All

I have Samba 3.2.11 installed on Suse (sles 10) machine. I am 
playing around the group mapping functionality. When I map a linux 
group to nt group. I can see that groups is visible on windows 
client. But, if I restart the smbd daemon (while changing the 
scurity mode for ads to user or vice versa), I can no more see the 
mapped group to the the Windows client. Though, I was able to see 
the mapping in the output of 'net groupmap list' command. I will 
request you to please let me know the answer of following questions:


1. Is there any way to see the mapped group to the windows client 
even after changing the security mode or restarting the samba server?


2. Does  samba store the group mapping in group_mapping.ldb file. 
Will it be enough to copy this file to other node to get cluster 
wise solution for group mapping or do I need to follow any other steps.


3. Can I map built-in domain group like Domain Admins, Domain 
Users etc to the Unix group? If yes, should I need to keep SID 
fixed by specifying rid value?


4. If I want to do the manual mapping, do I need to specify 
parameter 'add group script' in smb.conf? When is this option called?



Thanks a lot in advance.


Group mappings should be persistent in either the local TDB file or 
the LDAP backend, depending on how you are configuring your 
machine.There are some group mappings that you must have.


I have found that I can copy a TBD file for group mapping between 
machines BUT your group mapping requirements may be a little 
different for a domain controller vs a member server.It is 
probably safer to reenter the commands on the other machines.



The member server may need the local Administrators and Users 
groups defined (see below) that I don't think you need on the domain 
controllers.The rid values for these well known groups is defined 
by Microsoft and available in the Samba docn.


e.g

net groupmap add ntgroup=Domain Admins unixgroup=10512 rid=512

net groupmap add ntgroup=Domain Users unixgroup=10513 rid=513

net groupmap add ntgroup=Domain Guests unixgroup=10514 rid=514

net groupmap add ntgroup=Domain Controllers unixgroup=10516  rid=516

net groupmap add ntgroup=Domain Computers unixgroup=10515  rid=515


net groupmap add ntgroup=Administrators unixgroup=10544 rid=544 
type=local


net groupmap add ntgroup=Users unixgroup=10545 rid=545 type=local

net groupmap add ntgroup=Guests unixgroup=nobody rid=546 type=local





Hi Gaiseric

Thanks a lot for your prompt reply. Still there are some confusion:

Do I need to specify the uid of the Unix user?  I think name should 
also work. Let Domain Admins SID 512 is mapped with unix group gid 
10234. If, I change group permission on a file to Domain Admins, 
what gid value will be assigned to that file? Will it be 10512 or 10234?




Yes, you should be able to specify the unix group name rather than the 
unix group GID.   (no user names or uid's are involved.)You must use 
the predefined RID (e.g. 512) -   your local unix GID can be whatever.  
(10512, 9223, smb_dom_admins, FunGroup1 etc.)   I think you will make 
fewer errors it the unix GID is either the same as the RID (e.g. if 
RID's are 512 and 513 the GID's are 512 and 513) or at lease there is 
some obvious pattern (e.g. RID's 512 and 513 map to GID's 10512 and 
10513, if you already the the 500 block of Unix GID's used for something 
else)




On the unix level, the group perms shown will be that of the GID not the 
RID. So if RID 512 maps to GID 10234, the unix level will show 10234.



I have an LDAP backend for everything.  That seems OK with using Domain 
Admins as a unix group, despite the space in the names.   I don't know 
if you can do this if you are using NIS or /etc/passwd for the unix 
accounts.  I found that with samba 3.4.x it was easier if the unix group 
names were the same as the windows group names.






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


[Samba] matchname messages filling logs - howto stop?

2010-01-11 Thread David C. Rankin
Listmates,

I have had a few boxes where the 'matchname' message is filling my 
syslog with
one new message ever ~40 seconds or so. No performance problems, just the log
annoyance. An example of the messages are:

Jan 11 13:43:03 nemesis smbd[2246]: [2010/01/11 13:43:03,  0]
lib/util_sock.c:1685(get_peer_name)
Jan 11 13:43:03 nemesis smbd[2246]:   Matchname failed on Adrienne-PC.rbpllc.com
:::192.168.7.127
Jan 11 13:43:45 nemesis smbd[2247]: [2010/01/11 13:43:45,  0]
lib/util_sock.c:1564(matchname)
Jan 11 13:43:45 nemesis smbd[2247]:   matchname: host name/address mismatch:
:::192.168.7.127 != Adrienne-PC.rbpllc.com
Jan 11 13:43:45 nemesis smbd[2247]: [2010/01/11 13:43:45,  0]
lib/util_sock.c:1685(get_peer_name)
Jan 11 13:43:45 nemesis smbd[2247]:   Matchname failed on Adrienne-PC.rbpllc.com
:::192.168.7.127
Jan 11 13:52:22 nemesis smbd[2270]: [2010/01/11 13:52:22,  0]
lib/util_sock.c:1564(matchname)
Jan 11 13:52:22 nemesis smbd[2270]:   matchname: host name/address mismatch:
:::192.168.7.127 != Adrienne-PC.rbpllc.com
Jan 11 13:52:22 nemesis smbd[2270]: [2010/01/11 13:52:22,  0]
lib/util_sock.c:1685(get_peer_name)
Jan 11 13:52:22 nemesis smbd[2270]:   Matchname failed on Adrienne-PC.rbpllc.com
:::192.168.7.127
Jan 11 13:53:04 nemesis smbd[2271]: [2010/01/11 13:53:04,  0]
lib/util_sock.c:1564(matchname)
Jan 11 13:53:04 nemesis smbd[2271]:   matchname: host name/address mismatch:
:::192.168.7.127 != Adrienne-PC.rbpllc.com
Jan 11 13:53:04 nemesis smbd[2271]: [2010/01/11 13:53:04,  0]
lib/util_sock.c:1685(get_peer_name)
Jan 11 13:53:04 nemesis smbd[2271]:   Matchname failed on Adrienne-PC.rbpllc.com
:::192.168.7.127
Jan 11 13:53:46 nemesis smbd[2272]: [2010/01/11 13:53:46,  0]
lib/util_sock.c:1564(matchname)
Jan 11 13:53:46 nemesis smbd[2272]:   matchname: host name/address mismatch:
:::192.168.7.127 != Adrienne-PC.rbpllc.com
Jan 11 13:53:46 nemesis smbd[2272]: [2010/01/11 13:53:46,  0]
lib/util_sock.c:1685(get_peer_name)
Jan 11 13:53:46 nemesis smbd[2272]:   Matchname failed on Adrienne-PC.rbpllc.com
:::192.168.7.127

The message is generated between an XP box and the samba server which 
is setup
in standalone mode. The basic configuration is:

[global]
workgroup = RB_LAW
server string = Samba %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 100
smb ports = 139
name resolve order = wins lmhosts bcast
time server = Yes
printcap name = cups
disable spoolss = Yes
show add printer wizard = No
os level = 58
dns proxy = No
wins server = 192.168.7.15
admin users = david
hosts allow = 192.168.7., 192.168.6., 192.168.8., 192.168.5., 127.
[homes]
comment = Home Directories
read only = No
browseable = No
browsable = No

[samba]
comment = Nemesis Law
path = /home/samba
valid users = @office, anna
force group = office
read only = No
inherit permissions = Yes

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
browsable = No

[print$]
path = /var/lib/samba/drivers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes


I have had this same problem on several boxes and I haven't been able 
to chase
down the cause. I get that samba is saying that there is a mismatch between the
hostname and the address for the IPV6 address :::192.168.7.127 !=
Adrienne-PC.rbpllc.com. The problem is I don't know where samba is caching this
information or how to prevent samba from considering this box and address to be
mismatched.

I apologize if this has been asked and answered before, but I haven't 
had the
time to monitor the list on a daily basis as I have had in the past. Could
somebody shed some light on how I can solve this problem. I would rather not
simply drop the log level to hide the error, I would prefer to fix it. Thanks.

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba+ldap two domains db sync?

2010-01-11 Thread Alberto Moreno
 Thanks people.

  I will read about synrepl and see how it works, thanks all of u for
your tips!!!

  See  u!!!

On Mon, Jan 11, 2010 at 6:49 AM, Rob Shinn mor...@tuxedo.darktech.org wrote:
 Gaiseric Vandal wrote:

 I don't think one user in LDAP could be in two different domains-  each
 user has to have a distinct SambaSID entry.


 Ooomph! *slaps forehead*.  You're right.  That's what I get for posting
 before I've had my coffeee.

 I stand by my original statement that OpenLDAP's syncrepl would work,
 though.



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




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

Re: [Samba] Joining Windows XP client to Samba 3 domain: Access denied

2010-01-11 Thread Vinicius Abrahao
On Mon, Jan 4, 2010 at 6:49 AM, Christian Geiger c.gei...@lohrmann.de wrote:
 Hi Vinícius!

 Wish you a happy new year, too!

 Yes, I solved my issue in the meantime. I made a mistake and tried joining
 the domain with the user instead of the administrator account. As no machine
 account had been previously created for that machine, the join couldn't be
 performed. Doing it as the administrator solved this and created the machine
 account in the background.

 What does your smb.conf look like? Did you ensure a machine account exists?
 And which user did you supply for joining the domain?

 Best regards
 Chris

 PS: I'm running Samba 3.3.2 and OpenLDAP 2.4.15 on Ubuntu 9.04 Server.

Hi Chris, and all List!

Thanks for helping me. I solve the problem in a strange way.

I get the smb.conf of another machine that had samba working fine as PDC
and replace my actual conf (but without modify my ldap data), and the clients
joint normally.  So I think...  I'll restore the original smb.conf and
verify line by line
what is the difference between their. But... when I restore the
original file, I could
joint at my domain normally too.  So...

I resolve the problem, but I don't know how yet.
I'll reinstall from scratch when I have more time, and then create a
solid doc, about
samba-ldap integration (how to delivery it, not the internals aspects).

thanks again for help,

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


[Samba] setfacl:operation not supported

2010-01-11 Thread himmat baldaniya


Hi all
from last few days i got struct in problem.when i try to use setfacl command 
setfacl -m u:himmat:r-- /ide2/asd
i get the error setfacl : /ide2/asd : operation not supported
i also has mounted acl using -:
mount -f -o remount,acl  /   Note: -f option is for force
i am using red  hat kernel 2.4.20-8 and  acl-2.2.3-1
One more thing i have to ask whether acl utility supports Samba version-2.2.7a
plz help .. I want to know ur valuable suggestions
thankyou 
  
  
_
New Windows 7: Find the right PC for you. Learn more.
http://windows.microsoft.com/shop
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] setfacl:operation not supported

2010-01-11 Thread Eero Volotinen

On 1/12/10 8:02 AM, himmat baldaniya wrote:



Hi all
from last few days i got struct in problem.when i try to use setfacl command
setfacl -m u:himmat:r-- /ide2/asd
i get the error setfacl : /ide2/asd : operation not supported
i also has mounted acl using -:
mount -f -o remount,acl  /   Note: -f option is for force
i am using red  hat kernel 2.4.20-8 and  acl-2.2.3-1
One more thing i have to ask whether acl utility supports Samba version-2.2.7a
plz help .. I want to know ur valuable suggestions
thankyou


maybe it's time to upgrade os ..

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


[Samba] FW: setfacl:operation not supported

2010-01-11 Thread himmat baldaniya

Hello,
I am using red hat 2.4.20-8  with  samba 2.2.7a. i have to enable acl with 
samba.whether acl is enabled bydefault in samba if not,then how we have to do 


thankyou 
  
  
_
New Windows 7: Find the right PC for you. Learn more.
http://windows.microsoft.com/shop
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] FW: setfacl:operation not supported

2010-01-11 Thread Eero Volotinen

On 1/12/10 8:36 AM, himmat baldaniya wrote:


Hello,
I am using red hat 2.4.20-8  with  samba 2.2.7a. i have to enable acl with 
samba.whether acl is enabled bydefault in samba if not,then how we have to do 




You are using antique system of redhat? Nowdays systems runs 2.6.x 
series kernel. Maybe your system is not supporting acl? What is redhat 
release version of os you are running (cat /etc/redhat-release)


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


[SCM] Samba Shared Repository - branch master updated

2010-01-11 Thread Stefan Metzmacher
The branch, master has been updated
   via  04f3f27... tsocket: Added doxygen config file.
   via  574f77f... tsocket: Added complete doxygen documentation.
  from  c32b0b6... Merge remote branch 'origin/master' into alpha11release

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


- Log -
commit 04f3f27f7e7a4e7ae3584fe9b7ed7c5f5d556ec7
Author: Andreas Schneider a...@redhat.com
Date:   Mon Dec 21 12:44:00 2009 +0100

tsocket: Added doxygen config file.

Signed-off-by: Stefan Metzmacher me...@samba.org

commit 574f77f89e78997844dd6e993f9bf53476555026
Author: Andreas Schneider a...@redhat.com
Date:   Wed Dec 16 13:26:48 2009 +0100

tsocket: Added complete doxygen documentation.

Signed-off-by: Stefan Metzmacher me...@samba.org

---

Summary of changes:
 .../Doxyfile = lib/tsocket/doxy.config|  509 +---
 lib/tsocket/tsocket.h  |  845 +++-
 lib/tsocket/tsocket_helpers.c  |   52 --
 3 files changed, 1209 insertions(+), 197 deletions(-)
 copy nsswitch/libwbclient/Doxyfile = lib/tsocket/doxy.config (73%)


Changeset truncated at 500 lines:

diff --git a/nsswitch/libwbclient/Doxyfile b/lib/tsocket/doxy.config
similarity index 73%
copy from nsswitch/libwbclient/Doxyfile
copy to lib/tsocket/doxy.config
index 529a16f..584ae73 100644
--- a/nsswitch/libwbclient/Doxyfile
+++ b/lib/tsocket/doxy.config
@@ -1,4 +1,4 @@
-# Doxyfile 1.5.3
+# Doxyfile 1.6.1
 
 # This file describes the settings to be used by the documentation system
 # doxygen (www.doxygen.org) for a project
@@ -14,31 +14,31 @@
 # Project related configuration options
 #---
 
-# This tag specifies the encoding used for all characters in the config file 
that
-# follow. The default is UTF-8 which is also the encoding used for all text 
before
-# the first occurrence of this tag. Doxygen uses libiconv (or the iconv built 
into
-# libc) for the transcoding. See http://www.gnu.org/software/libiconv for the 
list of
-# possible encodings.
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
 
 DOXYFILE_ENCODING  = UTF-8
 
 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
 # by quotes) that should identify the project.
 
-PROJECT_NAME   = Samba
+PROJECT_NAME   = tsocket
 
 # The PROJECT_NUMBER tag can be used to enter a project or revision number.
 # This could be handy for archiving the generated documentation or
 # if some version control system is used.
 
-PROJECT_NUMBER = HEAD
+PROJECT_NUMBER = 0.1
 
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
 # base path where the generated documentation will be put.
 # If a relative path is entered, it will be relative to the location
 # where doxygen was started. If left blank the current directory will be used.
 
-OUTPUT_DIRECTORY   = dox
+OUTPUT_DIRECTORY   = doc
 
 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
 # 4096 sub-directories (in 2 levels) under the output directory of each output
@@ -54,10 +54,11 @@ CREATE_SUBDIRS = NO
 # information to generate all constant output in the proper language.
 # The default language is English, other supported languages are:
 # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
-# Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian,
-# Italian, Japanese, Japanese-en (Japanese with English messages), Korean,
-# Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian,
-# Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian.
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
 
 OUTPUT_LANGUAGE= English
 
@@ -85,7 +86,17 @@ REPEAT_BRIEF   = YES
 # The $name file is provides specifies contains
 # represents a an the
 
-ABBREVIATE_BRIEF   =
+ABBREVIATE_BRIEF   = The $name class \
+ The $name widget \
+ The $name file \
+ is \
+ provides \
+ specifies \
+ contains \
+ represents 

[SCM] Samba Shared Repository - branch v3-4-test updated

2010-01-11 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  3c092c7... Second part of the fix for bug #7020 - smbd using 2G 
memory.
   via  cabe8f0... Fix bug #7020 - smbd using 2G memory.
   via  6a448ef... WHATSNEW: Start release notes for 3.4.5.
   via  459d41e... VERSION: Raise version number up to 3.4.5.
  from  945b2d1... WHATSNEW: Update changes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -
commit 3c092c7acb18620e3769c791a9ea4055605247ee
Author: Jeremy Allison j...@samba.org
Date:   Wed Jan 6 13:29:35 2010 -0800

Second part of the fix for bug #7020 - smbd using 2G memory.

There was a second leak in the processing of the out_data.frag
prs_struct. It needs freeing once the current pdu has been returned
asynchronously.

Jeremy.

commit cabe8f0ee859013d49fba011a5a9ac0112d7b001
Author: Jeremy Allison j...@samba.org
Date:   Tue Jan 5 14:38:56 2010 -0800

Fix bug #7020 - smbd using 2G memory.

When deferring an async pipe writeX and readX transfer
the outstanding request struct onto the conn struct. This
needs freeing after the packet is finally processed.

Jeremy.

commit 6a448ef299b24d3d02bb402c54105affd8e92b85
Author: Karolin Seeger ksee...@samba.org
Date:   Mon Jan 11 12:05:54 2010 +0100

WHATSNEW: Start release notes for 3.4.5.

Karolin

commit 459d41e5fc651a0820a7a1b571179d81b4546df3
Author: Karolin Seeger ksee...@samba.org
Date:   Mon Jan 11 12:03:45 2010 +0100

VERSION: Raise version number up to 3.4.5.

Karolin

---

Summary of changes:
 WHATSNEW.txt  |   49 +++-
 source3/VERSION   |2 +-
 source3/rpc_server/srv_pipe_hnd.c |7 +
 source3/smbd/pipes.c  |   10 +++
 4 files changed, 65 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 18d0d31..5c2d63a 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,49 @@
=
+   Release Notes for Samba 3.4.5
+January , 2010
+   =
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.5 include:
+
+   o 
+
+
+##
+Changes
+###
+
+Changes since 3.4.4
+---
+
+
+
+##
+Reporting bugs  Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   =
Release Notes for Samba 3.4.4
 January 7, 2009
=
@@ -94,8 +139,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
=
Release Notes for Samba 3.4.3
diff --git a/source3/VERSION b/source3/VERSION
index 594de0f..6110e01 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=4
+SAMBA_VERSION_RELEASE=5
 
 
 # Bug fix releases use a letter for the patch revision #
diff --git a/source3/rpc_server/srv_pipe_hnd.c 
b/source3/rpc_server/srv_pipe_hnd.c
index ffb7dde..14b137b 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -890,6 +890,13 @@ static ssize_t read_from_internal_pipe(struct pipes_struct 
*p, char *data, size_
   out:
(*is_data_outstanding) = prs_offset(p-out_data.frag)  n;
 
+   if (p-out_data.current_pdu_sent == prs_offset(p-out_data.frag)) {
+   /* We've returned everything in the 

[SCM] Samba Shared Repository - branch v3-5-test updated

2010-01-11 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  e687a20... Re-fix bug 5202 - cannot change ACLs on writable file 
with dos filemode=yes
  from  ea7d299... s3: Lock down some srvsvc calls according to what w2k3 
seems to do

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit e687a20d60144af2cb459231fb6a699f2533ce9d
Author: Jeremy Allison j...@samba.org
Date:   Fri Jan 8 10:17:46 2010 -0800

Re-fix bug 5202 - cannot change ACLs on writable file with dos 
filemode=yes

This bug re-occurred for 3.3.x and above.

The reason is that to change a NT ACL we now have to open the file 
requesting
WRITE_DAC and WRITE_OWNER access. The mapping from POSIX w to NT 
permissions
in posix_acls doesn't add these bits when dos filemode = yes, so even 
though
the permission or owner change would be allowed by the POSIX ACL code, the
NTCreateX call fails with ACCESS_DENIED now we always check NT permissions
first.

Added in the mapping from w to WRITE_DAC and WRITE_OWNER access.

Jeremy.
(cherry picked from commit d7713d11a6dc2d66c820d7496bc45eb5fe527fbf)

---

Summary of changes:
 source3/smbd/posix_acls.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 8280538..8d66bf1 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -1107,6 +1107,9 @@ uint32_t map_canon_ace_perms(int snum,
nt_mask |= ((perms  S_IWUSR) ? UNIX_ACCESS_W : 0 );
nt_mask |= ((perms  S_IXUSR) ? UNIX_ACCESS_X : 0 );
}
+   if ((perms  S_IWUSR)  lp_dos_filemode(snum)) {
+   nt_mask |= (SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER);
+   }
}
 
DEBUG(10,(map_canon_ace_perms: Mapped (UNIX) %x to (NT) %x\n,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated

2010-01-11 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  f04a8d1... Re-fix bug 5202 - cannot change ACLs on writable file 
with dos filemode=yes
  from  3c092c7... Second part of the fix for bug #7020 - smbd using 2G 
memory.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -
commit f04a8d1811c1099eb653efda314bc98553fa6d02
Author: Jeremy Allison j...@samba.org
Date:   Fri Jan 8 10:22:46 2010 -0800

Re-fix bug 5202 - cannot change ACLs on writable file with dos 
filemode=yes

This bug re-occurred for 3.3.x and above.

The reason is that to change a NT ACL we now have to open the file 
requesting
WRITE_DAC and WRITE_OWNER access. The mapping from POSIX w to NT 
permissions
in posix_acls doesn't add these bits when dos filemode = yes, so even 
though
the permission or owner change would be allowed by the POSIX ACL code, the
NTCreateX call fails with ACCESS_DENIED now we always check NT permissions
first.

Added in the mapping from w to WRITE_DAC and WRITE_OWNER access.

Jeremy.

---

Summary of changes:
 source3/smbd/posix_acls.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 3b6f70b..43edf21 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -1107,6 +1107,9 @@ static uint32_t map_canon_ace_perms(int snum,
nt_mask |= ((perms  S_IWUSR) ? UNIX_ACCESS_W : 0 );
nt_mask |= ((perms  S_IXUSR) ? UNIX_ACCESS_X : 0 );
}
+   if ((perms  S_IWUSR)  lp_dos_filemode(snum)) {
+   nt_mask |= (SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER);
+   }
}
 
DEBUG(10,(map_canon_ace_perms: Mapped (UNIX) %x to (NT) %x\n,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-11 Thread Volker Lendecke
The branch, master has been updated
   via  0ad8381... s3: Add a zfsacl:denymissingspecial parameter
  from  04f3f27... tsocket: Added doxygen config file.

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


- Log -
commit 0ad83813ee5cbebd20d930356be61a9ebdddad46
Author: Volker Lendecke v...@samba.org
Date:   Mon Jan 11 12:10:47 2010 +0100

s3: Add a zfsacl:denymissingspecial parameter

When setting an ACL without any of the user/group/other entries, ZFS
automatically creates them. This can at times confuse users a lot. This
parameter denies setting such an acl, users explicitly have to for example 
set
an ACE with everyone allowing nothing. Users need to be educated about this,
but this helps avoid a lot of confusion.

---

Summary of changes:
 source3/modules/vfs_zfsacl.c |   10 ++
 1 files changed, 10 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_zfsacl.c b/source3/modules/vfs_zfsacl.c
index 312160c..a3de30e 100644
--- a/source3/modules/vfs_zfsacl.c
+++ b/source3/modules/vfs_zfsacl.c
@@ -106,6 +106,7 @@ static bool zfs_process_smbacl(files_struct *fsp, SMB4ACL_T 
*smbacl)
ace_t *acebuf;
SMB4ACE_T *smbace;
TALLOC_CTX  *mem_ctx;
+   bool have_special_id = false;
 
/* allocate the field of ZFS aces */
mem_ctx = talloc_tos();
@@ -140,8 +141,17 @@ static bool zfs_process_smbacl(files_struct *fsp, 
SMB4ACL_T *smbacl)
aceprop-who.special_id));
continue; /* don't add it !!! */
}
+   have_special_id = true;
}
}
+
+   if (!have_special_id
+lp_parm_bool(fsp-conn-params-service, zfsacl,
+   denymissingspecial, false)) {
+   errno = EACCES;
+   return false;
+   }
+
SMB_ASSERT(i == naces);
 
/* store acl */


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated

2010-01-11 Thread Karolin Seeger
The branch, v3-3-test has been updated
   via  9bd9575... Re-fix bug 5202 - cannot change ACLs on writable file 
with dos filemode=yes
  from  5fd3261... Prevent NULL dereference if group has no members

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit 9bd957580360ed7a0f98b02d1e03d7fcaf8a878e
Author: Jeremy Allison j...@samba.org
Date:   Fri Jan 8 10:24:34 2010 -0800

Re-fix bug 5202 - cannot change ACLs on writable file with dos 
filemode=yes

This bug re-occurred for 3.3.x and above.

The reason is that to change a NT ACL we now have to open the file 
requesting
WRITE_DAC and WRITE_OWNER access. The mapping from POSIX w to NT 
permissions
in posix_acls doesn't add these bits when dos filemode = yes, so even 
though
the permission or owner change would be allowed by the POSIX ACL code, the
NTCreateX call fails with ACCESS_DENIED now we always check NT permissions
first.

Added in the mapping from w to WRITE_DAC and WRITE_OWNER access.

Jeremy.

---

Summary of changes:
 source/smbd/posix_acls.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c
index c8d9e00..2836389 100644
--- a/source/smbd/posix_acls.c
+++ b/source/smbd/posix_acls.c
@@ -930,6 +930,9 @@ static uint32_t map_canon_ace_perms(int snum,
nt_mask |= ((perms  S_IWUSR) ? UNIX_ACCESS_W : 0 );
nt_mask |= ((perms  S_IXUSR) ? UNIX_ACCESS_X : 0 );
}
+   if ((perms  S_IWUSR)  lp_dos_filemode(snum)) {
+   nt_mask |= (WRITE_DAC_ACCESS|WRITE_OWNER_ACCESS);
+   }
}
 
DEBUG(10,(map_canon_ace_perms: Mapped (UNIX) %x to (NT) %x\n,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated

2010-01-11 Thread Karolin Seeger
The branch, v3-3-test has been updated
   via  b6ce892... s3:smbd: Fix bug 6696
   via  b87c794... Second part of fix for bug 6696 - smbd 3.3.7 crashes 
(signal 11) in dns_register_smbd_reply. Restore the code from 3.2 that actually 
initializes the struct dns_reg_state handle. Jeremy.
  from  9bd9575... Re-fix bug 5202 - cannot change ACLs on writable file 
with dos filemode=yes

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit b6ce8928e88d92c5a5d703b52e6dc95a5c79d732
Author: Timothy Miller theo...@gmail.com
Date:   Mon Sep 7 12:01:58 2009 +0200

s3:smbd: Fix bug 6696

smbd crashes when using mdns (not avahi) support

commit b87c794f99d7909e907b1d115c317bebd55984ed
Author: Jeremy Allison j...@samba.org
Date:   Tue Sep 8 17:22:39 2009 -0700

Second part of fix for bug 6696 - smbd 3.3.7 crashes (signal 11) in 
dns_register_smbd_reply. Restore the code from 3.2 that actually initializes 
the struct dns_reg_state handle. Jeremy.

---

Summary of changes:
 source/smbd/dnsregister.c |2 +-
 source/smbd/server.c  |6 ++
 2 files changed, 7 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/dnsregister.c b/source/smbd/dnsregister.c
index ff9be43..f02739e 100644
--- a/source/smbd/dnsregister.c
+++ b/source/smbd/dnsregister.c
@@ -168,7 +168,7 @@ bool dns_register_smbd_reply(struct dns_reg_state 
*dns_state,
 {
int mdnsd_conn_fd = -1;
 
-   if (dns_state-srv_ref == NULL) {
+   if ((dns_state == NULL) || (dns_state-srv_ref == NULL)) {
return false;
}
 
diff --git a/source/smbd/server.c b/source/smbd/server.c
index e0f86a6..5129484 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -652,6 +652,12 @@ static bool open_sockets_smbd(bool is_daemon, bool 
interactive, const char *smb_
FD_ZERO(w_fds);
GetTimeOfDay(now);
 
+/* Kick off our mDNS registration. */
+if (dns_port != 0) {
+dns_register_smbd(dns_reg, dns_port, maxfd,
+r_fds, idle_timeout);
+}
+
event_add_to_select_args(smbd_event_context(), now,
 r_fds, w_fds, idle_timeout,
 maxfd);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-11 Thread Günther Deschner
The branch, master has been updated
   via  403dc10... testprogs: fix driver levels in spoolss test.
   via  9a1b298... testprogs: test each printer, do not abort after first 
failure.
   via  3e7b7bf... testprogs: fix EnumPrintProcessorDatatypes spoolss test.
   via  4aefb33... testprogs: add more error codes to spoolss test.
  from  0ad8381... s3: Add a zfsacl:denymissingspecial parameter

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


- Log -
commit 403dc10e8ff46282dd7f4afbd5e5f3fbcc73177d
Author: Günther Deschner g...@samba.org
Date:   Mon Jan 11 12:38:22 2010 +0100

testprogs: fix driver levels in spoolss test.

Guenther

commit 9a1b298e3d32252dd83fd2146b578e5150a06c7b
Author: Günther Deschner g...@samba.org
Date:   Mon Jan 11 12:37:45 2010 +0100

testprogs: test each printer, do not abort after first failure.

Guenther

commit 3e7b7bfd27fad1680f9f331e5b8d736bc3733e05
Author: Günther Deschner g...@samba.org
Date:   Mon Jan 11 12:34:56 2010 +0100

testprogs: fix EnumPrintProcessorDatatypes spoolss test.

Guenther

commit 4aefb33b9fa4b93fea7035c505e480949bfb843b
Author: Günther Deschner g...@samba.org
Date:   Mon Jan 11 12:33:22 2010 +0100

testprogs: add more error codes to spoolss test.

Guenther

---

Summary of changes:
 testprogs/win32/spoolss/error.c   |4 
 testprogs/win32/spoolss/spoolss.c |   23 +++
 2 files changed, 15 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/testprogs/win32/spoolss/error.c b/testprogs/win32/spoolss/error.c
index e523c15..ba15c1e 100644
--- a/testprogs/win32/spoolss/error.c
+++ b/testprogs/win32/spoolss/error.c
@@ -25,6 +25,8 @@ const char *errstr(DWORD error)
static char tmp[20];
 
switch (error) {
+   case ERROR_FILE_NOT_FOUND:
+   return ERROR_FILE_NOT_FOUND;
case ERROR_ACCESS_DENIED:
return ERROR_ACCESS_DENIED;
case ERROR_INVALID_PARAMETER:
@@ -105,6 +107,8 @@ const char *errstr(DWORD error)
case ERROR_PRINT_JOB_RESTART_REQUIRED:
return ERROR_PRINT_JOB_RESTART_REQUIRED;
 #endif
+   case ERROR_CANCELLED:
+   return ERROR_CANCELLED;
default:
break;
}
diff --git a/testprogs/win32/spoolss/spoolss.c 
b/testprogs/win32/spoolss/spoolss.c
index c550b99..5c77413 100644
--- a/testprogs/win32/spoolss/spoolss.c
+++ b/testprogs/win32/spoolss/spoolss.c
@@ -122,8 +122,8 @@ static BOOL test_EnumDrivers(struct torture_context *tctx,
 LPSTR servername,
 LPSTR architecture)
 {
-   DWORD levels[]  = { 1, 2, 3, 4, 5, 6, 8 };
-   DWORD success[] = { 1, 1, 1, 1, 1, 1, 1 };
+   DWORD levels[]  = { 1, 2, 3, 4, 5, 6 };
+   DWORD success[] = { 1, 1, 1, 1, 1, 1 };
DWORD i;
LPBYTE buffer = NULL;
 
@@ -357,8 +357,7 @@ static BOOL test_EnumPrintProcessors(struct torture_context 
*tctx,
 /
 
 static BOOL test_EnumPrintProcessorDatatypes(struct torture_context *tctx,
-LPSTR servername,
-LPSTR architecture)
+LPSTR servername)
 {
DWORD levels[]  = { 1 };
DWORD success[] = { 1 };
@@ -374,13 +373,13 @@ static BOOL test_EnumPrintProcessorDatatypes(struct 
torture_context *tctx,
 
torture_comment(tctx, Testing EnumPrintProcessorDatatypes 
level %d, levels[i]);
 
-   EnumPrintProcessorDatatypes(servername, architecture, 
levels[i], NULL, 0, needed, returned);
+   EnumPrintProcessorDatatypes(servername, winprint, levels[i], 
NULL, 0, needed, returned);
err = GetLastError();
if (err == ERROR_INSUFFICIENT_BUFFER) {
err = 0;
buffer = malloc(needed);
torture_assert(tctx, buffer, malloc failed);
-   if (!EnumPrintProcessorDatatypes(servername, 
architecture, levels[i], buffer, needed, needed, returned)) {
+   if (!EnumPrintProcessorDatatypes(servername, 
winprint, levels[i], buffer, needed, needed, returned)) {
err = GetLastError();
}
}
@@ -456,8 +455,8 @@ static BOOL test_GetPrinterDriver(struct torture_context 
*tctx,
  LPSTR architecture,
  HANDLE handle)
 {
-   DWORD levels[]  = { 1, 2, 3, 4, 5, 6, 8, 101};
-   DWORD success[] = { 1, 1, 1, 1, 1, 1, 1, 1 };
+   DWORD levels[]  = { 1, 2, 3, 4, 5, 6, 8 };
+   DWORD success[] = { 1, 1, 1, 1, 1, 1, 1 };
DWORD i;
  

[SCM] Samba Shared Repository - branch master updated

2010-01-11 Thread Simo Sorce
The branch, master has been updated
   via  e0e255f... Fix comment/debug messages
  from  403dc10... testprogs: fix driver levels in spoolss test.

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


- Log -
commit e0e255fb241b7e7918f237df52de3551ac6534f5
Author: Simo Sorce i...@samba.org
Date:   Mon Jan 11 11:48:12 2010 -0500

Fix comment/debug messages

---

Summary of changes:
 source4/kdc/kdc.c |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index 19042dc..026eaf4 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -762,22 +762,22 @@ static void kdc_task_init(struct task_server *task)
   PLUGIN_TYPE_DATA, hdb,
   hdb_samba4);
if(ret) {
-   task_server_terminate(task, kdc: failed to register hdb 
keytab, true);
+   task_server_terminate(task, kdc: failed to register hdb 
plugin, true);
return;
}
 
ret = krb5_kt_register(kdc-smb_krb5_context-krb5_context, 
hdb_kt_ops);
if(ret) {
-   task_server_terminate(task, kdc: failed to register hdb 
keytab, true);
+   task_server_terminate(task, kdc: failed to register keytab 
plugin, true);
return;
}
 
-   /* Registar WinDC hooks */
+   /* Register WinDC hooks */
ret = krb5_plugin_register(kdc-smb_krb5_context-krb5_context,
   PLUGIN_TYPE_DATA, windc,
   windc_plugin_table);
if(ret) {
-   task_server_terminate(task, kdc: failed to register hdb 
keytab, true);
+   task_server_terminate(task, kdc: failed to register windc 
plugin, true);
return;
}
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-01-11 Thread Volker Lendecke
The branch, master has been updated
   via  d75d14f... s3-lanman: Allow a level2 descriptor for a level1 
NetShareGetInfo
  from  e0e255f... Fix comment/debug messages

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


- Log -
commit d75d14f8de0b1fe36028e605c9453631d9cd70bc
Author: Giovanni Bajo ra...@develer.com
Date:   Mon Jan 11 22:18:40 2010 +0100

s3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo

Windows seems to allow this

http://lists.samba.org/archive/samba-technical/2009-November/068116.html

has a dump of this.

---

Summary of changes:
 source3/smbd/lanman.c |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 0294299..2711502 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1569,7 +1569,9 @@ static bool check_share_info(int uLevel, char* id)
}
break;
case 1:
-   if (strcmp(id,B13BWz) != 0) {
+   /* Level-2 descriptor is allowed (and ignored) */
+   if (strcmp(id,B13BWz) != 0 
+   strcmp(id,B13BWzWWWzB9B) != 0) {
return False;
}
break;


-- 
Samba Shared Repository


[SCM] CTDB repository - branch 1.0.82 updated - ctdb-1.0.82-71-g2423eb0

2010-01-11 Thread Ronnie Sahlberg
The branch, 1.0.82 has been updated
   via  2423eb06518292b0164426a981636b9d9adbd482 (commit)
   via  c3afe7f0f84faf619ac32a1050b7c8a9712c8a98 (commit)
   via  9fb67bbcc8b4880e29f69aa4862d24bf9c567449 (commit)
   via  27dfcdde9abb765a3b874df2ef00e0ba0f22ee53 (commit)
   via  21b33d7a2b86453b60f8bfc94cc14fe4ef5432eb (commit)
   via  18d7a1533257a4a0ad643f0fd213b82fb6a6dce7 (commit)
  from  d745ecb8d161c7a629676a3b2ab4a2bc826f70b7 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.0.82


- Log -
commit 2423eb06518292b0164426a981636b9d9adbd482
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Jan 12 09:49:45 2010 +1100

version 1.0.82-19

commit c3afe7f0f84faf619ac32a1050b7c8a9712c8a98
Author: Christian Ambach christian.amb...@de.ibm.com
Date:   Tue Dec 8 19:23:19 2009 +0100

reduce vacuuming lognoise

syslog.h says:

LOG_NOTICE  5normal but significant condition
LOG_INFO6informational

several vacuuming related logs logged at NOTICE level although I don't see
any real significance, these are just informational messages for me

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

commit 9fb67bbcc8b4880e29f69aa4862d24bf9c567449
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Nov 24 09:27:22 2009 +1100

reduce the log level for three vacuuming related log messages (cherry 
picked from commit fbc453733d53359b9eba34a7ca9123237a7ecca5)

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

commit 27dfcdde9abb765a3b874df2ef00e0ba0f22ee53
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Nov 5 16:07:23 2009 +1100

dont use the pointer after it has been talloc_free()d. (cherry picked from 
commit 1cbf06a126621b3e932925cdad2ef9c009f93d4e)

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

commit 21b33d7a2b86453b60f8bfc94cc14fe4ef5432eb
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Mon Oct 26 09:35:18 2009 +1100

lower the log level of a debug message (cherry picked from commit 
496dc2e80b714811c6e69dc928deaad61cf603b1)

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

commit 18d7a1533257a4a0ad643f0fd213b82fb6a6dce7
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Oct 20 13:01:15 2009 +1100

From Wolfgang Mueller

make sure to always create the vactun database and get rid of some annoying 
log messages
(cherry picked from commit 54f9c314a0354f1039208fe6ac7dc159b6db8750)

Signed-off-by: Christian Ambach christian.amb...@de.ibm.com

---

Summary of changes:
 packaging/RPM/ctdb.spec |4 +++-
 server/ctdb_vacuum.c|   30 ++
 2 files changed, 17 insertions(+), 17 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RPM/ctdb.spec b/packaging/RPM/ctdb.spec
index 17e646e..2b852f4 100644
--- a/packaging/RPM/ctdb.spec
+++ b/packaging/RPM/ctdb.spec
@@ -5,7 +5,7 @@ Vendor: Samba Team
 Packager: Samba Team sa...@samba.org
 Name: ctdb
 Version: 1.0.82
-Release: 18
+Release: 19
 Epoch: 0
 License: GNU GPL version 3
 Group: System Environment/Daemons
@@ -133,6 +133,8 @@ fi
 %{_libdir}/pkgconfig/ctdb.pc
 
 %changelog
+* Tue Jan 12 2010 : Version 1.0.82-19
+ - Various changes to reduce the loglevels for informational messages
 * Tue Dec 8 2009 : Version 1.0.82-18
  - Remove dodgy talloc fix and replace with correct fix from Rusty.
 * Fri Nov 6 2009 : Version 1.0.82-16
diff --git a/server/ctdb_vacuum.c b/server/ctdb_vacuum.c
index 074acbb..98be294 100644
--- a/server/ctdb_vacuum.c
+++ b/server/ctdb_vacuum.c
@@ -131,7 +131,7 @@ static int vacuum_traverse(struct tdb_context *tdb, 
TDB_DATA key, TDB_DATA data,
 
hash = ctdb_hash(key);
if (trbt_lookup32(vdata-delete_tree, hash)) {
-   DEBUG(DEBUG_INFO, (__location__  Hash collission when 
vacuuming, skipping this record.\n));
+   DEBUG(DEBUG_DEBUG, (__location__  Hash collission when 
vacuuming, skipping this record.\n));
} 
else {
struct delete_record_data *dd;
@@ -267,7 +267,7 @@ static int ctdb_vacuum_db(struct ctdb_db_context *ctdb_db, 
struct vacuum_data *v
/* for records where we are not the lmaster, tell the lmaster 
to fetch the record */
if (ctdb-vnn_map-map[i] != ctdb-pnn) {
TDB_DATA data;
-   DEBUG(DEBUG_NOTICE,(Found %u records for lmaster %u in 
'%s'\n, 
+   DEBUG(DEBUG_INFO,(Found %u records for lmaster %u in 
'%s'\n, 

vdata-list[i]-count, i, name));
 
data.dsize = talloc_get_size(vdata-list[i]);
@@ -459,7 +459,7 @@ 

svn commit: samba-web r1355 - in trunk/team: .

2010-01-11 Thread deryck
Author: deryck
Date: 2010-01-11 18:18:45 -0700 (Mon, 11 Jan 2010)
New Revision: 1355

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1355

Log:
Move myself to alumni list.


Modified:
   trunk/team/index.html


Changeset:
Modified: trunk/team/index.html
===
--- trunk/team/index.html   2010-01-07 10:53:18 UTC (rev 1354)
+++ trunk/team/index.html   2010-01-12 01:18:45 UTC (rev 1355)
@@ -52,7 +52,6 @@
 lia href=mailto:sfre...@samba.org;Steve French/a/li
 lia href=mailto:pa...@samba.org;Paul Green/a/li
 lia href=http://ubiqx.org/;Chris Hertel/a/li
-lia href=http://www.devurandom.org;Deryck Hodge/a/li
 lia href=http://people.su.se/~lha/;Love Houml;rnquist 
Aring;strand/a/li
 lia href=mailto:nivan...@samba.org;Nadezhda Ivanova/a/li
 lia href=http://www.j3e.de/;Bjouml;rn Jacke/a/li
@@ -103,6 +102,7 @@
 lia href=http://www.plainjoe.org/;Gerald Carter/a/li
 lia href=mailto:elr...@samba-tng.org;Elrond/a/li
 liDave Fenwick/li
+lia href=http://www.devurandom.org/;Deryck Hodge/a/li
 lia href=mailto:kal...@veritas.com;Shirish Kalele/a/li
 lia href=mailto:pke...@ets.net;Peter Kelly/a/li
 lia href=mailto:va...@samba.org;Vance Lankhaar/a/li



Build status as of Tue Jan 12 07:00:04 2010

2010-01-11 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2010-01-11 
00:00:05.0 -0700
+++ /home/build/master/cache/broken_results.txt 2010-01-12 00:00:04.0 
-0700
@@ -1,11 +1,11 @@
-Build status as of Mon Jan 11 07:00:04 2010
+Build status as of Tue Jan 12 07:00:04 2010
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
 ccache   1  0  0 
 distcc   0  0  0 
-ldb  28 27 0 
+ldb  29 28 0 
 libreplace   0  0  0 
 lorikeet 0  0  0 
 pidl 0  0  0 
@@ -13,10 +13,10 @@
 rsync0  0  0 
 samba-docs   0  0  0 
 samba-web0  0  0 
-samba_3_current 26 26 2 
-samba_3_master 26 26 5 
-samba_3_next 26 26 5 
-samba_4_0_test 28 26 0 
-talloc   0  0  0 
-tdb  0  0  0 
+samba_3_current 27 27 2 
+samba_3_master 27 27 5 
+samba_3_next 27 25 5 
+samba_4_0_test 29 27 0 
+talloc   1  0  0 
+tdb  1  0  0