Samba3/LDAP: sambaPrimaryGroupSID

Michael Ströder michael at stroeder.com
Sun Mar 29 23:33:19 GMT 2009


HI!

Is the value in sambaPrimaryGroupSID always supposed to be the value of
sambaSID in an *existing* LDAP entry? Or are there well-known SIDs
automagically used?

I'm asking because I've declared a plugin class in web2ldap for
sambaPrimaryGroupSID which allows to search the possible values and
display a select list (see below). Obviously in this simple way all
possible values have to be present in entries on the LDAP server then.

Ciao, Michael.

------------------------------ snip ------------------------------

class SambaPrimaryGroupSID(DynamicValueSelectList):
  oid = 'SambaPrimaryGroupSID-oid'
  desc = 'SID of primary Samba group'
  ldap_url = 'ldap:///_?sambaSID,cn?sub?(objectClass=sambaGroupMapping)'

syntax_registry.registerAttrType(
  SambaPrimaryGroupSID.oid,[
    '1.3.6.1.4.1.7165.2.1.23', # sambaPrimaryGroupSID
  ]
)



More information about the samba-technical mailing list