<div dir="ltr"><div><div><div>Thanks Alexander,<br><br></div>I have rebuilt the server with compatibility and I can now query AD users. I'll just have to confirm with Dell / EMC whether the Isilon can now handle this. <br><br></div>Regards,<br><br></div>Hanoz<br><div class="gmail_extra"><br clear="all">
<br><div class="gmail_quote">On Wed, Feb 22, 2017 at 10:26 PM, Alexander Bokovoy <span dir="ltr"><<a href="mailto:abokovoy@redhat.com" target="_blank">abokovoy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On ke, 22 helmi 2017, Jason B. Nance wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For example, for user that would be (&(objectClass=posixAccount)(u<wbr>id=%s))<br>
where %s is <a href="mailto:ad_user@server.com" target="_blank">ad_user@server.com</a> according to your example.<br>
<br>
This is what would be intercepted and queried through SSSD.<br>
<br>
For example:<br>
<br>
$ ldapsearch -Y GSSAPI -b cn=compat,dc=xs,dc=ipa,dc=cool<br>
'(&(objectClass=posixAccount)(<wbr>uid=user@ad.ipa.cool))'<br>
SASL/GSSAPI authentication started<br>
SASL username: admin@XS.IPA.COOL<br>
SASL SSF: 56<br>
SASL data security layer installed.<br>
# extended LDIF<br>
#<br>
# LDAPv3<br>
# base <cn=compat,dc=xs,dc=ipa,dc=coo<wbr>l> with scope subtree<br>
# filter: (&(objectClass=posixAccount)(u<wbr>id=user@ad.ipa.cool))<br>
# requesting: ALL<br>
#<br>
<br>
# user@ad.ipa.cool, users, compat, xs.ipa.cool<br>
dn: uid=user@ad.ipa.cool,cn=users,<wbr>cn=compat,dc=xs,dc=ipa,dc=cool<br>
objectClass: ipaOverrideTarget<br>
objectClass: posixAccount<br>
objectClass: top<br>
cn: YO!<br>
gidNumber: 967001113<br>
gecos: YO!<br>
ipaAnchorUUID:: <some base64 value><br>
uidNumber: 967001113<br>
loginShell: /bin/bash<br>
homeDirectory: /home/ad.ipa.cool/user<br>
uid: user@ad.ipa.cool<br>
<br>
# search result<br>
search: 4<br>
result: 0 Success<br>
<br>
# numResponses: 2<br>
# numEntries: 1<br>
</blockquote>
<br>
I'm not able to recreate this (on FreeIPA 4.4.0).  "ipa-compat-manage<br>
status" says "Plugin Enabled", but searches for AD users yield no<br>
results:<br>
</blockquote></div></div>
Sorry, I forgot mention yesterday that if you didn't use<br>
'ipa-adtrust-install --enable-compat' then one thing is missing from<br>
compat tree configuration to allow resolution of AD users. Luckily, it<br>
is a simple ldapadd that can fix it. You can use ipa-ldap-updater:<br>
<br>
<br>
# cat 80-enable-compat-nsswitch.upda<wbr>te dn: cn=users,cn=Schema Compatibility,cn=plugins,cn=co<wbr>nfig<br>
add:schema-compat-lookup-nsswi<wbr>tch: user<br>
<br>
dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=co<wbr>nfig<br>
add:schema-compat-lookup-nsswi<wbr>tch: group<br>
# ipa-ldap-updater ./80-enable-compat-nsswitch.up<wbr>date <br>
and then restart 389-ds.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As a side note, I'm also not able to use GSSAPI auth as you did:<br>
<br>
$ kinit<br>
Password for jnance@LAB.GEN.ZONE:<br>
$ ldapsearch -Y GSSAPI -b cn=compat,dc=ipa,dc=lab,dc=gen<wbr>,dc=zone '(&(objectClass=posixAccount)(<wbr>uid=jnance@lab.gen.zone))'<br>
SASL/GSSAPI authentication started<br>
ldap_sasl_interactive_bind_s: Invalid credentials (49)<br>
</blockquote></span>
I used IPA user, not AD user to bind with GSSAPI.<br>
<br>
In FreeIPA 4.4 it should also work with AD user as well but only if the<br>
user has ID override entry, even empty one:<br>
<br>
# ipa idoverrideuser-add 'Default Trust View' administrator@ad.ipa.cool<br>
<br>
and now administrator@ad.ipa.cool will be able to issue ldap searches<br>
against IPA LDAP server from Linux machines. Note that ldp.exe will<br>
still be unable to perform searches against IPA LDAP until<br>
<a href="https://github.com/cyrusimap/cyrus-sasl/pull/424" rel="noreferrer" target="_blank">https://github.com/cyrusimap/c<wbr>yrus-sasl/pull/424</a> is released in a<br>
distribution.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
/ Alexander Bokovoy<br>
</font></span></blockquote></div><br></div></div>