Bug 1399336 - Cannot authenticate with winbind in AD
Summary: Cannot authenticate with winbind in AD
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: samba4
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-28 19:09 UTC by Manuel Pelayo
Modified: 2016-12-16 14:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-15 10:00:25 UTC
Type: Bug


Attachments (Terms of Use)

Description Manuel Pelayo 2016-11-28 19:09:30 UTC
Description of problem:

Since the Fedora 25 upgrade, AD users cannot authenticate.

How reproducible:
Allways


Actual results:
- The Fedora 25 client was integrated on AD without problem.
- "wbinfo -u" returns users AD list.
- "wbinfo -g" returns group AD list.
- "getent passwd" returns users AD list.
- "getent group" returns group AD list.

But "id user_ad" returns "id: 'user_ad': no such user" (with user_ad a real user AD).

Comment 1 Andreas Schneider 2016-11-29 13:36:07 UTC
Please provide log files as described here:

https://www.samba.org/~asn/reporting_samba_bugs.txt


Thanks

Comment 2 Manuel Pelayo 2016-12-14 18:31:29 UTC
Solved here :
https://bugzilla.samba.org/show_bug.cgi?id=12284#c12

Comment 3 Andreas Schneider 2016-12-15 10:00:25 UTC
So you had an invalid IDMAP configuration?

In Samba 4.6 the 'testparm' tool will warn about issues with ID mapping configuration and winbind will not start if an invalid IDMAP backend is configured.

Comment 4 Manuel Pelayo 2016-12-15 10:48:10 UTC
No, the IDMAP configuration was not invalid.
The 4.5 version requires more precision than 4.4.x. :
--- smb-4.4.conf
+++ smb-4.5.conf
@@ -11,3 +11,5 @@
 	winbind use default domain = Yes
 	idmap config * : range = 100000-109999
 	idmap config * : backend = rid
+	idmap config DOMAIN : range = 100000-109999
+	idmap config DOMAIN : backend = rid

Comment 5 Andreas Schneider 2016-12-16 14:03:30 UTC
The 'rid' backend is not a valid backend for 'idmap config *'. Winbind in Samba 4.6 will not start if 'rid' is configured for the default backend. So the config is invalid and we just did not tell the user.

Also the change you did is not ok. You have overlapping ID map ranges! Those ranges should never overlap.

Comment 6 Andreas Schneider 2016-12-16 14:06:40 UTC
https://wiki.samba.org/index.php/Idmap_config_rid


Note You need to log in before you can comment on or make changes to this bug.