My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Setting of Samba Primary Group SID after 3.0.23 (SAMBA) (LDAP)

This document (3323463) is provided subject to the disclaimer at the end of this document.

Environment


Novell SUSE Linux Enterprise Server 9
Novell SUSE Linux Enterprise Server 10

Situation

After an update to Samba > 3.0.23 the setting "Primary Group SID" for any user in Samba seems to be 513, for example

pdbedit -v -u test5

gives for user test5

Primary Group SID: S-1-5-21-2832020676-840558856-594110992-513

and no matter what you try to change this seems to be fixed. This was changed in Samba 3.0.23. The primary group is no longer taken from the SambaPrimaryGroupSID attribute, because of issues with conflicts between the unix primary group and the samba primary group.

But you would like to have a few users be actually members of the Domain Admin Group, but this would require a RID of 512.

Resolution

To solve this issue an example. You would like to have a user be member of the Domain Admin Group, RID 512. For this you first create a new group in LDAP, lets call it ntadmin. This gets the gidnumber of 512. Then you issue

net groupmap add rid=512 unixgroup=512

and then check

net groupmap list

should give

512 (S-1-5-21-2832020676-840558856-594110992-512) -> ntadmin

then you change the gidnumber of the user (in my test this is test6) to 512 in LDAP and then you check with

pdbedit -v -u test6

and get finally

Primary Group SID: S-1-5-21-2832020676-840558856-594110992-512

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3323463
  • Creation Date:02-APR-08
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center