I'm preparing for an eventual upgrade from CentOS 6 to CentOS 7. Right now, in version 6, we just use LDAP mapped to AD for authentication. This then uses the UID and GID from the Active Directory extension for Unix.
In my experimentation with CentOS 7, I went through the documentation (I think it was from Red Hat) that explained how to join to a domain. The process was mostly straight forward, and mostly works great. However, it doesn't just use the UID and GIDs from AD Unix attributes. It is mapping those IDs to completely different IDs. In AD, users are in the 10000 range. CentOS7 is giving each user UID in the 625000000 range.
So far in my small scale testing (3 boxes) the UID seems to be consistent across them all and that is good. However, when I begin rolling 7 out in production, it will be a gradual upgrade. I won't be upgrading every box at the same time. I'm concerned about issues with users having different UIDs on different boxes. Is there a way I can get CentOS 7 to just use the UIDs and GIDs in the AD Unix attributes?
Here is my smb.conf:
[global]
workgroup = COMPANY
client signing = yes
client use spnego = yes
kerberos method = secrets and keytab
log file = /var/log/samba/%m.log
password server = ad_domaincontroller.company.net
realm = COMPANY.NET
security = ads
server string = Samba Server Version %v
max log size = 50
And here is my sssd.conf
[sssd]
config_file_version = 2
domains = company.net
services = nss, pam, pac
[nss]
filter_groups = root
filter_users = root
[domain/company.net]
id_provider = ad
ad_server = ad_domiancontroller.company.net
ad_hostname = centos7-22.company.net
auth_provider = ad
chpass_provider = ad
access_provider = ad
ldap_schema = ad
use_fully_qualified_names = False
cache_credentials = true
ldap_access_order = expire
ldap_account_expire_policy = ad
ldap_force_upper_case_realm = true
Edit: I've tried adding ldap_id_mapping = False to sssd.conf, but with that line included, sssd.service will not start. Here is the output:
Sep 29 12:59:55 centos7-22 sssd[32827]: Starting up
Sep 29 12:59:55 centos7-22 sssd[32828]: Starting up
Sep 29 12:59:55 centos7-22 sssd[32831]: Starting up
Sep 29 12:59:55 centos7-22 sssd[32830]: Starting up
Sep 29 12:59:55 centos7-22 sssd[32829]: Starting up
Sep 29 12:59:55 centos7-22 sssd[32832]: Starting up
Sep 29 12:59:56 centos7-22 sssd[be[32833]: Starting up
Sep 29 12:59:56 centos7-22 systemd[1]: sssd.service: control process exited, code=exited status=1
Sep 29 12:59:56 centos7-22 systemd[1]: Failed to start System Security Services Daemon.
-- Subject: Unit sssd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sssd.service has failed.
--
-- The result is failed.
Sep 29 12:59:56 centos7-22 systemd[1]: Unit sssd.service entered failed state.