Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SYSVOL ACLs and GPOs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 33 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Matthews  
View profile  
 More options Oct 24 2012, 6:00 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Wed, 24 Oct 2012 12:00:02 +0200
Local: Wed, Oct 24 2012 6:00 am
Subject: [Samba] SYSVOL ACLs and GPOs
Hi,

I have installed a virtual testing network consisting of one samba4 PDC
(latest git master) and one Windows XP Pro SP3 (fully updated)machine.

I have successfully provisioned an AD Domain and joined the XP machine
to it.
When I run the gpmc on the XP Pro machine and select:
Forest: <domain name> -> Domains -> <domain name> -> Group Policy
Objects -> Default Domain [Controller | Policy]
I get the following error:

"The permissions for this GPO in the SYSVOL folder are inconsistent with
those in Active Directory.
It is recommended that these permissions be consistent.
To change the SYSVOL permissions to those in Active Directory, click OK."

Hitting ok I get no error but as soon as I reselect THE SAME entry I get
the same error, it doesn't seem to be able to fix the ACL.

I have found one post about this on the list
(https://bugzilla.samba.org/show_bug.cgi?id=5483)but apparently it was
"fixed" a long time ago.
Seeing as I'm using the latest version I would assume this is a
different issue.

If I try to change any of the ACLs on either of the folders in
\\<pdc>\sysvol\<domain name>\Policies\ by hand I get no errors however
the change doesn't stick.

Looking at the samba log files:

I get this when I start gpmc and click ok:
http://pastebin.com/7rBKyU1B

I get this when I start gpmc and don't click ok:
http://pastebin.com/B3DMSE1T

I get this when I alter the ACLs manually (after line 479 is when I
actually alter the ACLs):
http://pastebin.com/2mEvWX6K

My smb.conf is stock. No alterations.
The server OS is Ubuntu 12.04.
The filesystem is ext4 mounted with the following options:
"errors=remount-ro,acl,user_xattr,barrier=1".
I have all acl packages installed that I have seen referenced by samba
or in posts of a similar nature.

Thanks,

Alex

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 24 2012, 7:20 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Wed, 24 Oct 2012 13:20:02 +0200
Local: Wed, Oct 24 2012 7:20 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

If you are in the mood for some testing, can you try my acl-fixes2
branch?

git remote add abartlet git://git.samba.org/abartlet/samba.git
git fetch abartlet
git checkout abartlet/acl-fixes2 -b abartlet-acl-fixes2

I'm trying to get these changes into master, but I'm not quite finished.
You should only put these on a test server, as I may change data formats
etc.

I would be very curious to know if this fixes the issue.

Otherwise or in addition, if you can show me the contents of your
idmap.ldb (ldbsearch -H idmap.ldb) it might help me guess as what is
going wrong here, and fix it.

Thanks,

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 24 2012, 12:30 pm
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Wed, 24 Oct 2012 18:30:02 +0200
Local: Wed, Oct 24 2012 12:30 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 24/10/2012 12:09, Andrew Bartlett wrote:

I assume

git checkout abartlet/acl-fixes2 -b abartlet-acl-fixes2

should be:

git checkout abartlet/fix-acls2 -b abartlet-fix-acls2

I'm rebuilding now, will keep you posted!

Thanks,

Alex

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 24 2012, 1:40 pm
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Wed, 24 Oct 2012 19:40:02 +0200
Local: Wed, Oct 24 2012 1:40 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 24/10/2012 17:25, Alex Matthews wrote:

I have tried your branch. Rebuilt and the XP machine still throws the
same issue.

Do I need to reprovision?

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 24 2012, 9:40 pm
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Thu, 25 Oct 2012 03:40:02 +0200
Local: Wed, Oct 24 2012 9:40 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs

You need to at least run 'samba-tool ntacl sysvolreset' to get the new
ACLs on disk.

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 5:10 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Thu, 25 Oct 2012 11:10:01 +0200
Local: Thurs, Oct 25 2012 5:10 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 25/10/2012 02:31, Andrew Bartlett wrote:

Hiya,

No luck I'm afraid, still the same issue!

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 25 2012, 5:30 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Thu, 25 Oct 2012 11:30:02 +0200
Local: Thurs, Oct 25 2012 5:30 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

Drat.  OK, we will need to dig in further.  Can you show me your
idmap.ldb?

What does 'samba-tool ntacl sysvolcheck' show?

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 5:40 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Thu, 25 Oct 2012 11:40:02 +0200
Local: Thurs, Oct 25 2012 5:40 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 25/10/2012 10:20, Andrew Bartlett wrote:

samba-tool ntacl sysvolcheck shows:

sudo /usr/local/samba/bin/samba-tool ntacl sysvolcheck
[sudo] password for qoole:
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
Processing section "[global]"
Processing section "[netlogon]"
Processing section "[sysvol]"
ldb_wrap open of idmap.ldb
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
Initialising custom vfs hooks from [acl_xattr]
Module 'acl_xattr' loaded
Initialising custom vfs hooks from [dfs_samba4]
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
Initialising custom vfs hooks from [acl_xattr]
Initialising custom vfs hooks from [dfs_samba4]
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
Initialising custom vfs hooks from [acl_xattr]
Initialising custom vfs hooks from [dfs_samba4]
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
Initialising custom vfs hooks from [acl_xattr]
Initialising custom vfs hooks from [dfs_samba4]
ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception -
ProvisioningError: VFS ACL on GPO directory
/usr/local/samba/var/locks/sysvol/home.lillimoth.com/Policies/{31B2F340-016 D-11D2-945F-00C04FB984F9}
O:DAG:DUD:(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001200a9;;;ED)(A;OICI;0x001200a 9;;;AU)(A;OICI;0x001f01ff;;;DA)(A;;0x001200a9;;;DA)(A;;0x001200a9;;;EA)(A;; 0x001200a9;;;SY)(A;OICIIO;0x001f01ff;;;CO)(A;OICIIO;WO;;;CG)(A;OICIIO;0x001 f01ff;;;EA)(A;OICIIO;0x001f01ff;;;SY)
does not match expected value
O:DAG:DUD:P(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001f01ff;;;EA)(A;OICIIO;0x001f 01ff;;;CO)(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001f01ff;;;SY)(A;OICI;0x001200a 9;;;AU)(A;OICI;0x001200a9;;;ED)S:AI(OU;CIIDSA;WP;f30e3bbe-9ff0-11d1-b603-00 00f80367c1;bf967aa5-0de6-11d0-a285-00aa003049e2;WD)(OU;CIIDSA;WP;f30e3bbf-9 ff0-11d1-b603-0000f80367c1;bf967aa5-0de6-11d0-a285-00aa003049e2;WD)
from GPO object
   File
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
     return self.run(*args, **kwargs)
   File
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py",
line 245, in run
     lp)
   File
"/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1574, in checksysvolacl
     direct_db_access)
   File
"/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1526, in check_gpos_acl
     domainsid, direct_db_access)
   File
"/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1476, in check_dir_acl
     raise ProvisioningError('%s ACL on GPO directory %s %s does not
match expected value %s from GPO object' % (acl_type(direct_db_access),
path, fsacl_sddl, acl))

idmap.ldb contains:

# ldbsearch -H idmap.ldb
# record 1
dn: CN=S-1-1-0
cn: S-1-1-0
objectClass: sidMap
objectSid:: AQEAAAAAAAEAAAAA
type: ID_TYPE_BOTH
xidNumber: 3000013
distinguishedName: CN=S-1-1-0

# record 2
dn: CN=CONFIG
cn: CONFIG
lowerBound: 3000000
upperBound: 4000000
xidNumber: 3000018
distinguishedName: CN=CONFIG

# record 3
dn: CN=S-1-5-11
cn: S-1-5-11
objectClass: sidMap
objectSid:: AQEAAAAAAAULAAAA
type: ID_TYPE_BOTH
xidNumber: 3000003
distinguishedName: CN=S-1-5-11

# record 4
dn: CN=S-1-5-9
cn: S-1-5-9
objectClass: sidMap
objectSid:: AQEAAAAAAAUJAAAA
type: ID_TYPE_BOTH
xidNumber: 3000010
distinguishedName: CN=S-1-5-9

# record 5
dn: CN=S-1-5-7
cn: S-1-5-7
objectClass: sidMap
objectSid:: AQEAAAAAAAUHAAAA
type: ID_TYPE_UID
xidNumber: 65534
distinguishedName: CN=S-1-5-7

# record 6
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-572
cn: S-1-5-21-3528014533-2888711523-1744986056-572
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoPAIAAA==
type: ID_TYPE_BOTH
xidNumber: 3000005
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-572

# record 7
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-520
cn: S-1-5-21-3528014533-2888711523-1744986056-520
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoCAIAAA==
type: ID_TYPE_BOTH
xidNumber: 3000004
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-520

# record 8
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-515
cn: S-1-5-21-3528014533-2888711523-1744986056-515
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoAwIAAA==
type: ID_TYPE_BOTH
xidNumber: 3000017
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-515

# record 9
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-514
cn: S-1-5-21-3528014533-2888711523-1744986056-514
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoAgIAAA==
type: ID_TYPE_BOTH
xidNumber: 3000012
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-514

# record 10
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-513
cn: S-1-5-21-3528014533-2888711523-1744986056-513
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoAQIAAA==
type: ID_TYPE_GID
xidNumber: 100
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-513

# record 11
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-512
cn: S-1-5-21-3528014533-2888711523-1744986056-512
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJoAAIAAA==
type: ID_TYPE_BOTH
xidNumber: 3000008
distinguishedName: CN=S-1-5-21-3528014533-2888711523-1744986056-512

# record 12
dn: CN=S-1-5-21-3528014533-2888711523-1744986056-501
cn: S-1-5-21-3528014533-2888711523-1744986056-501
objectClass: sidMap
objectSid:: AQUAAAAAAAUVAAAAxTpJ0mM9LqzIXwJo9QEAAA==
type: ID_TYPE_BOTH
xidNumber: ...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 25 2012, 6:40 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Thu, 25 Oct 2012 12:40:01 +0200
Local: Thurs, Oct 25 2012 6:40 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

Drat.

So, assuming you have run 'samba-tool ntacl sysvolreset', this is indeed
the issue we have had for a while.  I had (incorrectly in your case)
assumed the issue was that IDMAP mappings imported from classic domains
were breaking it.  That's why I worked on my patches, which improve the
situation by handling some details at a lower level.

On my fix-acls2 branch, please run 'samba-tool ntacl sysvolreset' then
then, if you don't mind, getting me the level 10 debug log would be very
helpful.  Set 'log level = 10' in your smb.conf, then re-run and send me
(personally) the result compressed with xz.

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 25 2012, 6:50 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Thu, 25 Oct 2012 12:50:02 +0200
Local: Thurs, Oct 25 2012 6:50 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

Yeah, I was incredibly unclear:  I need level 10 logs of just the
command 'samba-tool ntacl sysvolcheck' command, as that shows the issue
in a very nice, self-contained way.

Andrew Bartlett
--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 6:50 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Thu, 25 Oct 2012 12:50:03 +0200
Local: Thurs, Oct 25 2012 6:50 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 25/10/2012 11:30, Andrew Bartlett wrote:

Just to be clear, those last two logs were taken from a samba compiled
with your fix-acls2 branch.
It is also a completely blank provisioned domain I have not migrated
anything.

What do you want the logs of? Starting samba + logging in from XP +
starting gpmc.msc + altering permissions manually?

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 25 2012, 6:30 pm
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 26 Oct 2012 00:30:01 +0200
Local: Thurs, Oct 25 2012 6:30 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs

So, the issue is that this host doesn't return the ACL consistently.
What I mean is this:

When we store the NT ACL for the {12344...} folder, we store an xattr
with:
 - the NT ACL we need to return to clients
 - the hash of the posix ACL we set on disk (as read back from the OS)

When we do the sysvolcheck we fetch the xattr, read the hash and get the
posix ACL off disk again.  On your host, these don't match!

Can you give me details about what your host is?

Just to be really sure we are doing this right, because I can't
reproduce this here, can you run:

bin/samba-tool domain provision --targetdir=/tmp/provision-root2
--realm=realm.com --domain=dom

Do this on master and on my fix-acls2 branch, with separate targetdir
for each, with this patch on top in both cases?

If that passes, can you give me the provision command you normally use,
and tell me if that fails?

If your normal command passes, then can you work out if there is a time
period involved before sysvolcheck fails? (that is, after X seconds it
fails).  For this last thing, I'm clutching at caching straws, but this
is a real issue that we must get to the bottom of - beyond the AD DC,
the ACL facility we use here is critical to file server users in Samba
too.

Thanks,

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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

  0001-provision-Always-check-the-sysvol-ACLs-worked-after-.patch
2K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 7:00 pm
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Fri, 26 Oct 2012 01:00:02 +0200
Local: Thurs, Oct 25 2012 7:00 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 25/10/2012 23:27, Andrew Bartlett wrote:

My host is a VirtualBox VM Running Ubuntu 12.04 LTS Server.
Kernel = 3.2.0-32-generic
I have followed all posts I could find about ext4 filesystems+samba4
/ is mounted with the options: "acl,user_xattr,barrier=1" this is where
all the samba stuff is located.

What else would you like to know?

I am downloading/building now.

Thanks,

Alex

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 7:40 pm
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Fri, 26 Oct 2012 01:40:02 +0200
Local: Thurs, Oct 25 2012 7:40 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 25/10/2012 23:27, Andrew Bartlett wrote:

I have the following directory tree:

/root/samba_test/samba-master
/root/samba_test/samba-aclfix
/root/samba_test/build-master
/root/samba_test/build-aclfix

I ran:
build-master/bin/samba-tool domain provision
--targetdir=/root/samba_test/provision_master --realm=realm.com --domain=dom
build-aclfix/bin/samba-tool domain provision
--targetdir=/root/samba_test/provision_aclfix --realm=realm.com --domain=dom

however when I run:
build-{master|aclfix}/bin/samba-tool ntacl sysvolcheck
I get the following error:

ERROR(runtime): uncaught exception - samdb_domain_sid failed
   File
"/root/samba_test/build_aclfix/lib/python2.7/site-packages/samba/netcmd/__i nit__.py",
line 175, in _run
     return self.run(*args, **kwargs)
   File
"/root/samba_test/build_aclfix/lib/python2.7/site-packages/samba/netcmd/nta cl.py",
line 240, in run
     domain_sid = security.dom_sid(samdb.domain_sid)
   File
"/root/samba_test/build_aclfix/lib/python2.7/site-packages/samba/samdb.py",
line 549, in get_domain_sid
     return dsdb._samdb_get_domain_sid(self)

I assume this is due to the targetdir supplied in the provision step?

Thanks,

Alex

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 25 2012, 7:50 pm
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Fri, 26 Oct 2012 01:50:01 +0200
Local: Thurs, Oct 25 2012 7:50 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 26/10/2012 00:34, Alex Matthews wrote:

Instead of using targetdir I just ran the provision as is as and on both
trees sysvolcheck passes everytime.
I have run sysvolreset as well and sysvolcheck passes still.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 25 2012, 9:40 pm
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 26 Oct 2012 03:40:01 +0200
Local: Thurs, Oct 25 2012 9:40 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs

Yes.  Use:

build_master/bin/samba-tool ntacl sysvolcheck
-s /root/samba_test/provision_master/etc/smb.conf

Thanks!

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Olivier BILHAUT  
View profile  
 More options Oct 26 2012, 3:40 am
Newsgroups: linux.samba
From: Olivier BILHAUT <o.bilh...@fondation-misericorde.fr>
Date: Fri, 26 Oct 2012 09:40:02 +0200
Local: Fri, Oct 26 2012 3:40 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
Hi Andrew, Hi Alex,

Pleased to see that you figured this out.
We've got exactly the same problem from a blank provisioned domain (not
a migration), with a setup with 2 gpo. (Ubuntu 12.04 - S4 rc3).
Since our instance is in a semi-production environment, we'll wait for
your fix. But if needed, we could give you more level 10 logs.

Note that when the sysvolreset is launched and that sysvolcheck returns
no errors, then the windows clients can't "gpupdate" anymore on some gpo.
Note also that when syslvolreset isn't launched at S4 update, the
sysvolcheck command return the Alex's error but the client can update
their gpo.

Cheers and good luck.

-----------------------
***     Olivier B
***     Fondation de la Miséricorde

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 26 2012, 5:50 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 26 Oct 2012 11:50:02 +0200
Local: Fri, Oct 26 2012 5:50 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

So, what changed?

You said previously that sysvolcheck failed, and now it passes.  I
suspect you will find your GPO issues have been solved too.

I'm not suggesting you are stuffing me about, I really want to know what
you can find as a difference, so we can narrow this down.

Thanks,

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 26 2012, 5:50 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 26 Oct 2012 11:50:02 +0200
Local: Fri, Oct 26 2012 5:50 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

On Fri, 2012-10-26 at 09:36 +0200, Olivier BILHAUT wrote:
> Hi Andrew, Hi Alex,

> Pleased to see that you figured this out.
> We've got exactly the same problem from a blank provisioned domain (not
> a migration), with a setup with 2 gpo. (Ubuntu 12.04 - S4 rc3).
> Since our instance is in a semi-production environment, we'll wait for
> your fix. But if needed, we could give you more level 10 logs.

> Note that when the sysvolreset is launched and that sysvolcheck returns
> no errors, then the windows clients can't "gpupdate" anymore on some gpo.
> Note also that when syslvolreset isn't launched at S4 update, the
> sysvolcheck command return the Alex's error but the client can update
> their gpo.

This I think is the umask issue I addressed with this patch.  A
sysvolreset with this patch applied should fix that.  steve noticed that
permissions were missing from the posix ACL that was generated.

(this patch is in master)

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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

  0002-pysmbd-Set-umask-to-0-during-smbd-operations.patch
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 26 2012, 5:50 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Fri, 26 Oct 2012 11:50:03 +0200
Local: Fri, Oct 26 2012 5:50 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 26/10/2012 02:37, Andrew Bartlett wrote:

I'm assuming because of the way I laid my directory tree out I could
also just provision as normal and run the tests? Just makes it difficult
to "un-provision".

I did a bit of testing last night and sysvolcheck returns no errors
until the point that run the gpmc.msc on the XP domain member and click
ok to "fix" the inconsistent ACLs. At that point it returns the same
error. Running sysvolreset does not fix it either.
This is true, atleast, for the master branch, I haven't tested the
aclfix branch yet.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 26 2012, 6:10 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Fri, 26 Oct 2012 12:10:02 +0200
Local: Fri, Oct 26 2012 6:10 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 26/10/2012 11:03, Andrew Bartlett wrote:

# bin/samba-tool ntacl sysvolcheck
ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception -
ProvisioningError: VFS ACL on GPO directory
/root/samba_test/build_master/var/locks/sysvol/realm.com/Policies/{31B2F340 -016D-11D2-945F-00C04FB984F9}
O:DAG:DUD:(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001f01ff;;;DA)(A;;0x00120089;;; ED)(A;;0x00120089;;;DA)(A;;0x00120089;;;EA)(A;;0x00120089;;;AU)(A;;0x001200 89;;;SY)(A;OICIIO;0x001f01ff;;;CO)(A;OICIIO;WO;;;CG)(A;OICIIO;0x001200a9;;; ED)(A;OICIIO;0x001f01ff;;;EA)(A;OICIIO;0x001200a9;;;AU)(A;OICIIO;0x001f01ff ;;;SY)
does not match expected value
O:DAG:DUD:P(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001f01ff;;;EA)(A;OICIIO;0x001f 01ff;;;CO)(A;OICI;0x001f01ff;;;DA)(A;OICI;0x001f01ff;;;SY)(A;OICI;0x001200a 9;;;AU)(A;OICI;0x001200a9;;;ED)S:AI(OU;CIIDSA;WP;f30e3bbe-9ff0-11d1-b603-00 00f80367c1;bf967aa5-0de6-11d0-a285-00aa003049e2;WD)(OU;CIIDSA;WP;f30e3bbf-9 ff0-11d1-b603-0000f80367c1;bf967aa5-0de6-11d0-a285-00aa003049e2;WD)
from GPO object
   File
"/root/samba_test/build_master/lib/python2.7/site-packages/samba/netcmd/__i nit__.py",
line 175, in _run
     return self.run(*args, **kwargs)
   File
"/root/samba_test/build_master/lib/python2.7/site-packages/samba/netcmd/nta cl.py",
line 245, in run
     lp)
   File
"/root/samba_test/build_master/lib/python2.7/site-packages/samba/provision/ __init__.py",
line 1574, in checksysvolacl
     direct_db_access)
   File
"/root/samba_test/build_master/lib/python2.7/site-packages/samba/provision/ __init__.py",
line 1526, in check_gpos_acl
     domainsid, direct_db_access)
   File
"/root/samba_test/build_master/lib/python2.7/site-packages/samba/provision/ __init__.py",
line 1476, in check_dir_acl
     raise ProvisioningError('%s ACL on GPO directory %s %s does not
match expected value %s from GPO object' % (acl_type(direct_db_access),
path, fsacl_sddl, acl))

Level 10 sysvolcheck log: http://pastebin.com/QBHTKkqL

Do you want a wireshark packet log of GPMC or a samba level 10 log?

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Bartlett  
View profile  
 More options Oct 26 2012, 6:10 am
Newsgroups: linux.samba
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 26 Oct 2012 12:10:02 +0200
Local: Fri, Oct 26 2012 6:10 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs

On Fri, 2012-10-26 at 10:44 +0100, Alex Matthews wrote:
> I'm assuming because of the way I laid my directory tree out I could
> also just provision as normal and run the tests? Just makes it difficult
> to "un-provision".

> I did a bit of testing last night and sysvolcheck returns no errors
> until the point that run the gpmc.msc on the XP domain member and click
> ok to "fix" the inconsistent ACLs. At that point it returns the same
> error. Running sysvolreset does not fix it either.

OK.  This is more interesting.  Can you show me first the output, and
then the level 10 log of that sysvolcheck command?

I'm particularly curious that a sysvolreset can't fix it.  

A network capture of what gpmc does may be instructive also.

> This is true, atleast, for the master branch, I haven't tested the
> aclfix branch yet.

OK.

Given this info on the essential components involved (running gpmc.msc
once seems key), I think I have the steps to reproduce this here, which
I'll try tonight or tomorrow.

Thanks,

Andrew Bartlett

--
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Oct 27 2012, 8:30 pm
Newsgroups: linux.samba
From: Alex Matthews <qo...@lillimoth.com>
Date: Sun, 28 Oct 2012 02:30:02 +0200
Local: Sat, Oct 27 2012 8:30 pm
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 24/10/2012 17:25, Alex Matthews wrote:

I have tried your branch. Rebuilt and the XP machine still throws the
same issue.

Do I need to reprovision?

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Olivier BILHAUT  
View profile  
 More options Oct 29 2012, 6:40 am
Newsgroups: linux.samba
From: Olivier BILHAUT <o.bilh...@fondation-misericorde.fr>
Date: Mon, 29 Oct 2012 11:40:01 +0100
Local: Mon, Oct 29 2012 6:40 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
Hi Andrew,

I Updated our S4 instance this morning with the updated git (master). We
still have a problem with one of our 3 GPO. But if I remove one of them,
the same error is displayed with any of the remaining GPO. I need to
remove them all to completely get rid of this message. I also noticed
that it begins always with a GPO applied to the computers, not the users.

Here's the level 10 log. Sorry if you feel my message imprecise, and
don't hesitate to ask me more information if needed. We'll be pleased to
contribute at our level.

set_conn_connectpath: service (null), connectpath = /
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
vfs_find_backend_entry called for /[Default VFS]/
Successfully loaded vfs module [/[Default VFS]/] with the new modules system
Initialising custom vfs hooks from [acl_xattr]
vfs_find_backend_entry called for acl_xattr
Successfully loaded vfs module [acl_xattr] with the new modules system
Initialising custom vfs hooks from [dfs_samba4]
vfs_find_backend_entry called for dfs_samba4
Successfully loaded vfs module [dfs_samba4] with the new modules system
get_nt_acl_internal:
name=/usr/local/samba/var/locks/sysvol/fhm.local/Policies/{55125C07-DD60-47 97-B0BC-74F6CC63CFC6}
posix_fget_nt_acl: called for file
/usr/local/samba/var/locks/sysvol/fhm.local/Policies/{55125C07-DD60-4797-B0 BC-74F6CC63CFC6}
posix_get_nt_acl: called for file
/usr/local/samba/var/locks/sysvol/fhm.local/Policies/{55125C07-DD60-4797-B0 BC-74F6CC63CFC6}
uid 3000012 -> sid S-1-5-21-939380553-781147246-4131372059-512
gid 100 -> sid S-1-5-21-939380553-781147246-4131372059-513
uid 3000012 -> sid S-1-5-21-939380553-781147246-4131372059-512
gid 3000003 -> sid S-1-5-11
gid 3000010 -> sid S-1-5-21-939380553-781147246-4131372059-519
gid 3000012 -> sid S-1-5-21-939380553-781147246-4131372059-512
gid 3000026 -> sid S-1-5-18
gid 3000028 -> sid S-1-5-9
canonicalise_acl: Access ace entries before arrange :
canon_ace index 0. Type = allow SID = S-1-1-0 other SMB_ACL_OTHER
ace_flags = 0x0 perms ---
canon_ace index 1. Type = allow SID = S-1-5-9 gid 3000028 (3000028)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 2. Type = allow SID = S-1-5-18 gid 3000026 (3000026)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 3. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 gid 3000012 (Domain Admins)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 4. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-519 gid 3000010 (Enterprise
Admins) SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 5. Type = allow SID = S-1-5-11 gid 3000003 (3000003)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 6. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-513 gid 100 (users)
SMB_ACL_GROUP_OBJ ace_flags = 0x0 perms ---
canon_ace index 7. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER ace_flags = 0x0 perms rwx
canon_ace index 8. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER_OBJ ace_flags = 0x0 perms rwx
print_canon_ace_list: canonicalise_acl: ace entries after arrange
canon_ace index 0. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER_OBJ ace_flags = 0x0 perms rwx
canon_ace index 1. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-513 gid 100 (users)
SMB_ACL_GROUP_OBJ ace_flags = 0x0 perms ---
canon_ace index 2. Type = allow SID = S-1-5-9 gid 3000028 (3000028)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 3. Type = allow SID = S-1-5-18 gid 3000026 (3000026)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 4. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 gid 3000012 (Domain Admins)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 5. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-519 gid 3000010 (Enterprise
Admins) SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 6. Type = allow SID = S-1-5-11 gid 3000003 (3000003)
SMB_ACL_GROUP ace_flags = 0x0 perms r--
canon_ace index 7. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER ace_flags = 0x0 perms rwx
canon_ace index 8. Type = allow SID = S-1-1-0 other SMB_ACL_OTHER
ace_flags = 0x0 perms ---
uid 3000012 -> sid S-1-5-21-939380553-781147246-4131372059-512
gid 3000003 -> sid S-1-5-11
gid 3000010 -> sid S-1-5-21-939380553-781147246-4131372059-519
gid 3000012 -> sid S-1-5-21-939380553-781147246-4131372059-512
gid 3000026 -> sid S-1-5-18
gid 3000028 -> sid S-1-5-9
canonicalise_acl: Default ace entries before arrange :
canon_ace index 0. Type = allow SID = S-1-1-0 other SMB_ACL_OTHER
ace_flags = 0x0 perms ---
canon_ace index 1. Type = allow SID = S-1-5-9 gid 3000028 (3000028)
SMB_ACL_GROUP ace_flags = 0x0 perms r-x
canon_ace index 2. Type = allow SID = S-1-5-18 gid 3000026 (3000026)
SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 3. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 gid 3000012 (Domain Admins)
SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 4. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-519 gid 3000010 (Enterprise
Admins) SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 5. Type = allow SID = S-1-5-11 gid 3000003 (3000003)
SMB_ACL_GROUP ace_flags = 0x0 perms r-x
canon_ace index 6. Type = allow SID = S-1-3-1 gid 100 (users)
SMB_ACL_GROUP_OBJ ace_flags = 0x0 perms ---
canon_ace index 7. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER ace_flags = 0x0 perms rwx
canon_ace index 8. Type = allow SID = S-1-3-0 uid 3000012 (3000012)
SMB_ACL_USER_OBJ ace_flags = 0x0 perms rwx
print_canon_ace_list: canonicalise_acl: ace entries after arrange
canon_ace index 0. Type = allow SID = S-1-3-0 uid 3000012 (3000012)
SMB_ACL_USER_OBJ ace_flags = 0x0 perms rwx
canon_ace index 1. Type = allow SID = S-1-3-1 gid 100 (users)
SMB_ACL_GROUP_OBJ ace_flags = 0x0 perms ---
canon_ace index 2. Type = allow SID = S-1-5-9 gid 3000028 (3000028)
SMB_ACL_GROUP ace_flags = 0x0 perms r-x
canon_ace index 3. Type = allow SID = S-1-5-18 gid 3000026 (3000026)
SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 4. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 gid 3000012 (Domain Admins)
SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 5. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-519 gid 3000010 (Enterprise
Admins) SMB_ACL_GROUP ace_flags = 0x0 perms rwx
canon_ace index 6. Type = allow SID = S-1-5-11 gid 3000003 (3000003)
SMB_ACL_GROUP ace_flags = 0x0 perms r-x
canon_ace index 7. Type = allow SID =
S-1-5-21-939380553-781147246-4131372059-512 uid 3000012 (3000012)
SMB_ACL_USER ace_flags = 0x0 perms rwx
canon_ace index 8. Type = allow SID = S-1-1-0 other SMB_ACL_OTHER
ace_flags = 0x0 perms ---
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 100 to (NT) 120089
map_canon_ace_perms: Mapped (UNIX) 100 to (NT) 120089
map_canon_ace_perms: Mapped (UNIX) 100 to (NT) 120089
map_canon_ace_perms: Mapped (UNIX) 100 to (NT) 120089
map_canon_ace_perms: Mapped (UNIX) 100 to (NT) 120089
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 0 to (NT) 80000
map_canon_ace_perms: Mapped (UNIX) 140 to (NT) 1200a9
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
map_canon_ace_perms: Mapped (UNIX) 140 to (NT) 1200a9
map_canon_ace_perms: Mapped (UNIX) 1c0 to (NT) 1f01ff
merge_default_aces: Merging ACE 11 onto ACE 0.
merge_default_aces: Merging ACE 13 onto ACE 6.
get_nt_acl_internal: blob hash does not match for file
/usr/local/samba/var/locks/sysvol/fhm.local/Policies/{55125C07-DD60-4797-B0 BC-74F6CC63CFC6}
- returning file system SD mapping.
get_nt_acl_internal: acl for blob hash for
/usr/local/samba/var/locks/sysvol/fhm.local/Policies/{55125C07-DD60-4797-B0 BC-74F6CC63CFC6}
is:
      pdesc_next: struct security_descriptor
         revision                 : SECURITY_DESCRIPTOR_REVISION_1 (1)
         type                     : 0x9004 (36868)
                0: SEC_DESC_OWNER_DEFAULTED
                0: SEC_DESC_GROUP_DEFAULTED
                1: SEC_DESC_DACL_PRESENT
                0: SEC_DESC_DACL_DEFAULTED
                0: SEC_DESC_SACL_PRESENT
                0: SEC_DESC_SACL_DEFAULTED
                0: SEC_DESC_DACL_TRUSTED
                0: SEC_DESC_SERVER_SECURITY
                0: SEC_DESC_DACL_AUTO_INHERIT_REQ
                0: SEC_DESC_SACL_AUTO_INHERIT_REQ
                0: SEC_DESC_DACL_AUTO_INHERITED
                0: SEC_DESC_SACL_AUTO_INHERITED
                1: SEC_DESC_DACL_PROTECTED
                0: SEC_DESC_SACL_PROTECTED
                0: SEC_DESC_RM_CONTROL_VALID
                1: SEC_DESC_SELF_RELATIVE
         owner_sid                : *
             owner_sid                :
S-1-5-21-939380553-781147246-4131372059-512
         group_sid                : *
             group_sid                :
S-1-5-21-939380553-781147246-4131372059-513
         sacl                     : NULL
         dacl                     : *
             dacl: struct security_acl
                 revision                 : SECURITY_ACL_REVISION_NT4 (2)
                 size                     : 0x015c (348)
                 num_aces                 : 0x0000000d (13)
                 aces: ARRAY(13)
                     aces: struct security_ace
                         type                     :
SEC_ACE_TYPE_ACCESS_ALLOWED (0)
                         flags                    : 0x03 (3)
                                1: SEC_ACE_FLAG_OBJECT_INHERIT
                                1: SEC_ACE_FLAG_CONTAINER_INHERIT
                                0:
...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Matthews  
View profile  
 More options Nov 1 2012, 11:00 am
Newsgroups: linux.samba
From: Alex Matthews <qoole.sa...@lillimoth.com>
Date: Thu, 01 Nov 2012 16:00:01 +0100
Local: Thurs, Nov 1 2012 11:00 am
Subject: Re: [Samba] SYSVOL ACLs and GPOs
On 30/10/2012 00:08, Jeremy Allison wrote:

Ok I have some additional info.

Using the GPMC I cannot create new GPOs. I get the message: "This
security ID may not be assigned as the owner of this object"

If I use samba-tool gpo create I get the following:

# bin/samba-tool gpo create "SMC Students"
ERROR(ldb): uncaught exception - LDAP error 50
LDAP_INSUFFICIENT_ACCESS_RIGHTS -  <dsdb_access: Access check failed on
CN=Policies,CN=System,DC=internal,DC=stmaryscollege,DC=co,DC=uk> <>
   File
"/vol/samba4/build/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
     return self.run(*args, **kwargs)
   File
"/vol/samba4/build/lib64/python2.7/site-packages/samba/netcmd/gpo.py",
line 952, in run
     self.samdb.add(m)

If I supply administrator as username I get:

# bin/samba-tool gpo create "SMC Students" -U administrator
Password for [SMC\administrator]:
ERROR(runtime): uncaught exception - (-1073741734,
'NT_STATUS_INVALID_OWNER')
   File
"/vol/samba4/build/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
     return self.run(*args, **kwargs)
   File
"/vol/samba4/build/lib64/python2.7/site-packages/samba/netcmd/gpo.py",
line 987, in run
     conn.set_acl(sharepath, fs_sd, sio)

However this time it has successfully created the GPO. (GPMC still
throws the same warnings about inconsistent ACLs).

bin/samba-tool gpo create "SMC Students" -d 10: http://pastebin.com/tjutA68u
bin/samba-tool gpo create "SMC Students" -U administrator -d 10:
http://pastebin.com/8kkVEy7V

I would hazard a guess and say the GPMC error (when creating a GPO) is
the same error as the samba-tool error.

Thanks,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 33   Newer >
« Back to Discussions « Newer topic     Older topic »