[Samba] Permissions on ou for net join to ADS

Andrew Bartlett abartlet at samba.org
Wed Feb 25 09:02:28 GMT 2004


On Wed, 2004-02-25 at 03:16, Unix Service (ANTS) wrote:
> Hi
> 
> I have noticed the following behaviour:
> 
> If I get a kerberos ticket as a domain admin user using kinit and then do a
> net join to an ADS domain, then this works fine and net ads testjoin and net
> ads leave work too.
> 
> However if I do it as a user with full control on a particular ou within the
> AD tree, net join gives the following:
> 
> net join "/Global Administration/Samba Servers"
> [2004/02/24 14:33:48, 0] libads/ldap.c:(1072)
>   Warning: ads_set_machine_sd: NT_STATUS_INVALID_PARAMETER
> Using short domain name -- AD
> Joined 'host1' to realm 'AD.ME.CO.UK'
> 
> net ads test join still returns ok but net ads leave returns failed to
> delete host xxxx from dddddd realm ( I do a net join again it deletes the
> old entry and re adds the host ok ).
> 
> It's not causing any problems as such, but I just wondered if there was any
> explanation for the above behaviour as I assumed full control on an ou would
> be equivlaent to domain admin within the scope of that ou.

Not quite - it does not allow us to set security descriptors.    We need
to return better errors there, but that's what is going on.  So, we
allow the join to work, but we can't remove our account on domain
leave.  (We normally modify the SD to permit exactly that).

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20040225/c8aa64fc/attachment.bin


More information about the samba mailing list