s4:test for "primaryGroupToken"

Andrew Bartlett abartlet at samba.org
Wed Aug 12 19:09:27 MDT 2009


On Wed, 2009-08-12 at 04:30 -0500, Matthias Dieter Wallnöfer wrote:
> The branch, master has been updated
>        via  159a33a7d4cb69b5487acb183cbf56a584048734 (commit)
>        via  9126b75aaed91d79c5b5388613a9cdbb6d898894 (commit)
>        via  b255a41dca63a68f404e37b7eb46b54070bea466 (commit)
>        via  fe767d4b70665bf8cf825455cb2c1db3fc2a1217 (commit)
>        via  7fc94932ad28880caed82155d65dcbfe8530e791 (commit)
>        via  8fcf1b988ad5c2338a75631696c32a31116708f1 (commit)
>        via  c73984a5c9966f9c90549e753764ae071670e15f (commit)
>       from  5796da6948379ffc101e813a4d68676e4a661c61 (commit)
> 
> http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
> 
> 
> - Log -----------------------------------------------------------------
> commit 159a33a7d4cb69b5487acb183cbf56a584048734
> Author: Matthias Dieter Wallnöfer <mwallnoefer at yahoo.de>
> Date:   Tue Aug 11 12:25:13 2009 +0200
> 
>     s4:test for "primaryGroupToken"
>     
>     Tests for the right behaviour of this introduced constructed attribute.
>     Since we don't support the read-only-ness of those attributes yet, I commented
>     some lines out.
>     Also I had to add a function for python which converts domain SIDs in RIDs.
>     And a small fix for the "groupType" test.

> +from samba import glue

> +	rid = glue.dom_sid_to_rid(ldb.schema_format_value("objectSID", res1[0]["objectSID"][0]))

Rather than import this from 'glue' directly (which isn't intended to be
used directly), I've found the right way to fix this:

Add a connection to the glue to scripting/python/samba/__init__.py, and
then import 'samba' into ldap.py

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.
-------------- 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/pipermail/samba-technical/attachments/20090813/5e2388f6/attachment.pgp>


More information about the samba-technical mailing list