LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-25-2015, 07:44 PM   #1
TheRyaz
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
Active Directory Integration with SSSD


I'm trying to set up Windows active directory integration with SSSD and realmd on a Red had 7 machine at my workplace. The goal is to let users log onto linux machines with their windows accounts.

I'm running into an issue that I'm having a hard time finding help with, when I try to login to the linux machine an error gets written to the log;
[sdap_idmap_sid_to_unix] (0x0080): Could not convert objectSID [S-1-5-21-2303841414-160008165-815047518-2195312] to a UNIX ID

I've read that it's probably because the SID number is too large. I've tried messing with the ldap_id_range_max/min values, but I end up running into an error when SSSD tries to start that the value is "out of range" when I make them too big (over 3000000000 or so)

Does anyone have any experience with this and can help?
 
Old 06-27-2015, 03:09 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
The idmap range parameters control which range of Unix UIDs/GIDs are to be associated with Windows SIDs. Since a UID/GID is an unsigned 32 bit integer, you'll get an error message if you specify a number larger than 4,294,967,295.

The "could not convert objectSID" error message simply means that ID mapping isn't working. The length of the SID is of no consequence.

I have no experience with SSSD, but it is my understanding that it takes over the id mapping tasks normally performed by Samba/winbindd, and that it supports algorithmic ID mapping (similar to the RID backend) and RFC 2307. Which setting are you using? And if you're using RFC 2307, is the AD UID field populated for the user account in question?
 
Old 06-29-2015, 04:19 PM   #3
TheRyaz
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I'm using realmd to join the domain. I had tried changing a bunch of the settings, but I narrowed it down to the idmapping causing the problem.

My sssd.config looks like this (DOMAIN is the domain I'm trying to authenticate in);

Code:
[sssd]
debug_level =9
domains = DOMAIN
services = nss, pam
config_file_version = 2

[domain/DOMAIN]
debug_level = 9
ad_domain = DOMAIN
krb5_realm = DOMAIN
realmd_tags = manages-system joined-with-samba
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_id_mapping = True
use_fully_qualified_names = False
fallback_homedir = /home/%u
access_provider = ad
ldap_idmap_range_min = 100000
ldap_idmap_range_max = 2000100000
ldap_idmap_range_size = 100000

These are mostly defaults, except for the idmap_range values, I've been experimenting with all sorts of values and can't get anything to work.
 
Old 07-13-2015, 02:39 PM   #4
TheRyaz
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Anyone?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Winbind or SSSD for Active Directory authentication megamaced Linux - Networking 2 12-20-2014 02:39 PM
SSSD response inconsistent with Active Directory abhi001neo Linux - Newbie 0 09-24-2014 05:44 AM
trying to connect redhat 6.4 to windows active directory, ussing SSSD/LDAP UNIX Zyklon Red Hat 1 09-23-2014 01:18 PM
SSO SSSD/Kerberos/LDAP with Active Directory yuanjunliang Linux - Server 1 09-13-2013 02:59 PM
Winbind / KRB / SSSD / Active Directory Howto? rrue Linux - Server 2 10-11-2012 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration