Question concerning integration of CES with AD authentication system
Dear members, at PSI I'm trying to integrate the CES service with our AD authentication system. My understanding, after talking to expert people here, is that I should use the RFC2307 model for ID mapping (described here: https://goo.gl/XvqHDH). The problem is that our ID schema is slightly different than that one described in RFC2307. In the RFC the relevant user identification fields are named "uidNumber" and "gidNumber". But in our AD database schema we have: # egrep 'uid_number|gid_number' /etc/sssd/sssd.conf ldap_user_uid_number = msSFU30UidNumber ldap_user_gid_number = msSFU30GidNumber ldap_group_gid_number = msSFU30GidNumber My question is: is it possible to configure CES to look for the custom field labels (those ones listed above) instead the default ones officially described in rfc2307 ? many thanks. Regards, Alvise Dorigo
I haven't needed to change the LDAP attributes that CES uses, but I do see --user-id-attrib in the mmuserauth documentation. Unfortunately, I don't see an equivalent one for gidNumber. On Thu, May 24, 2018 at 08:45:00AM +0000, Dorigo Alvise (PSI) wrote:
Dear members, at PSI I'm trying to integrate the CES service with our AD authentication system.
My understanding, after talking to expert people here, is that I should use the RFC2307 model for ID mapping (described here: https://goo.gl/XvqHDH). The problem is that our ID schema is slightly different than that one described in RFC2307. In the RFC the relevant user identification fields are named "uidNumber" and "gidNumber". But in our AD database schema we have:
# egrep 'uid_number|gid_number' /etc/sssd/sssd.conf ldap_user_uid_number = msSFU30UidNumber ldap_user_gid_number = msSFU30GidNumber ldap_group_gid_number = msSFU30GidNumber
My question is: is it possible to configure CES to look for the custom field labels (those ones listed above) instead the default ones officially described in rfc2307 ?
many thanks. Regards,
Alvise Dorigo
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine
On Thu, 2018-05-24 at 14:16 +0000, Skylar Thompson wrote:
I haven't needed to change the LDAP attributes that CES uses, but I do see --user-id-attrib in the mmuserauth documentation. Unfortunately, I don't see an equivalent one for gidNumber.
Is it not doing the "Samba thing" where your GID is the GID of your primary Active Directory group? This is usually "Domain Users" but not always. Basically Samba ignores the separate GID field in RFC2307bis, so one imagines the options for changing the LDAP attributes are none existent. I know back in the day this had me stumped for a while because unless you assign a GID number to the users primary group then Winbind does not return anything, aka a "getent passwd" on the user fails. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On Thu, May 24, 2018 at 03:46:32PM +0100, Jonathan Buzzard wrote:
On Thu, 2018-05-24 at 14:16 +0000, Skylar Thompson wrote:
I haven't needed to change the LDAP attributes that CES uses, but I do see --user-id-attrib in the mmuserauth documentation. Unfortunately, I don't see an equivalent one for gidNumber.
Is it not doing the "Samba thing" where your GID is the GID of your primary Active Directory group? This is usually "Domain Users" but not always.
Basically Samba ignores the separate GID field in RFC2307bis, so one imagines the options for changing the LDAP attributes are none existent.
I know back in the day this had me stumped for a while because unless you assign a GID number to the users primary group then Winbind does not return anything, aka a "getent passwd" on the user fails.
At least for us, it seems to be using the gidNumber attribute of our users. On the back-end, of course, it is Samba, but I don't know that there are mm* commands available for all of the tunables one can set in smb.conf. -- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine
You can change them using the normal SMB commands, from the appropriate bin directory, whether this is supported is another matter. We have one parameter set this way but I forgot which. Simkn ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Skylar Thompson [skylar2@uw.edu] Sent: 24 May 2018 15:51 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] Question concerning integration of CES with AD authentication system On Thu, May 24, 2018 at 03:46:32PM +0100, Jonathan Buzzard wrote:
On Thu, 2018-05-24 at 14:16 +0000, Skylar Thompson wrote:
I haven't needed to change the LDAP attributes that CES uses, but I do see --user-id-attrib in the mmuserauth documentation. Unfortunately, I don't see an equivalent one for gidNumber.
Is it not doing the "Samba thing" where your GID is the GID of your primary Active Directory group? This is usually "Domain Users" but not always.
Basically Samba ignores the separate GID field in RFC2307bis, so one imagines the options for changing the LDAP attributes are none existent.
I know back in the day this had me stumped for a while because unless you assign a GID number to the users primary group then Winbind does not return anything, aka a "getent passwd" on the user fails.
At least for us, it seems to be using the gidNumber attribute of our users. On the back-end, of course, it is Samba, but I don't know that there are mm* commands available for all of the tunables one can set in smb.conf. -- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
In the message dated: Thu, 24 May 2018 17:07:02 -0000, The pithy ruminations from Christof Schmitt on [Re: [gpfsug-discuss] Question concerning integration of CES with AD authentication system] were: => Following up on an old, old post... => > Basically Samba ignores the separate GID field in RFC2307bis, so one => > imagines the options for changing the LDAP attributes are none => > existent. => => mmuserauth now has an option to use either the gid from the actual primary => group or the gid defined for the user. See: => => https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/ => com.ibm.spectrum.scale.v5r00.doc/bl1adm_mmuserauth.htm => => --unixmap-domains unixDomainMap => [...] => win: Specifies the system to read the primary group set as Windows => primary group of a user on the Active Directory. => unix: Specifies the system to read the primary group as set in "UNIX => attributes" of a user on the Active Directory. => For example, => --unixmap-domains "MYDOMAIN1(20000-50000:unix);MYDOMAIN2 => (100000-200000:win)" I see this is refering to UNIX attributes within AD, but I'm curious about mapping to attributes in LDAP. => This gets mapped to 'idmap config ... : unix_primary_group' in the => internal config. Does that correspond to setting the smb.conf parameter unix_primary_group = yes Specifically, under Spectrum Scale 5.0.2, if I run: mmuserauth service create --data-access-method file --ldapmap-domains "DOMAIN(type=stand-alone:ldap_srv=ldapserver:range=1001-65535:usr_dn=ou=People,dc=DC,dc=TLD:grp_dn=ou=Group,dc=DC,dc=TLD)" --type ad (some args removed in this example), will that map the user's primary group to the primaryGroupID supplied by AD or the primaryGroupID LDAP field or the gidNumber LDAP field or something else? Thanks, Mark => => Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ => christof.schmitt@us.ibm.com || +1-520-799-2469 (T/L: 321-2469) =>
participants (6)
-
Christof Schmitt -
Dorigo Alvise (PSI) -
Jonathan Buzzard -
mark.bergman@uphs.upenn.edu -
Simon Thompson (IT Research Support) -
Skylar Thompson
