<div dir="ltr">Thanks Alexander,<div><br></div><div>That's the confirmation I was looking for. Indeed the Synology guy admitted it was their limitation.</div><div><br></div><div>I have already made a feature request for SSSD.</div><div><br></div><div>I guess for now I will just get it running with sec=sys.</div><div><br></div><div>Best regards, Roberto</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 August 2015 at 11:32, 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"><span class="">On Thu, 20 Aug 2015, Roberto Cornacchia wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I had Synology support inspect my configuration.<br>
<br>
They said that the authorization for the mapping looks for attribute<br>
"GSSAuthName" in LDAP, but doesn't find it. Therefore, they fall back to<br>
mapping it to nobody.<br>
<br>
Does this make sense to you? Is it true that GSSAuthName attribute isn't<br>
there?<br>
</blockquote></span>
FreeIPA does not use UMich LDAP schema developed for NFS. Instead, as we store<br>
Kerberos principals in LDAP, for each Kerberos principal there is always<br>
krbPrincipalName attribute available.<br>
<br>
But on SSSD clients we instead recommend using SSSD-based identity<br>
mapping in /etc/idmap.conf (using sss module) as it is relying on SSSD<br>
caching capabilities and in general is more performance efficient. For<br>
direct use of UMich LDAP module in NFSv4 idmap you would have idmapd<br>
module to query LDAP server on each GSSAPI connection and since there is<br>
no state umich_ldap.so module, it will re-connect to LDAP every time<br>
which is highly inefficient.<br>
<br>
That's why I recommended to suggest Synology to integrate SSSD in their<br>
OS and have real benefits in improved Kerberos/AD/LDAP/FreeIPA support.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
On 13 August 2015 at 16:34, Alexander Bokovoy <<a href="mailto:abokovoy@redhat.com" target="_blank">abokovoy@redhat.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 13 Aug 2015, Roberto Cornacchia wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
After some more investigation, I feel the problem I described can be<br>
considered off topic, sorry about that. Initially I had the impression it<br>
could have been more freeIPA-related.<br>
It is sometimes difficult to tell whether the issue would show up<br>
regardless of using freeIPA or not.<br>
<br>
Should anyone be curious, these are my findings about using a Synology<br>
disk<br>
station for NFSv4+krb5 exports in my freeIPA domain:<br>
<br>
- Still no idea why I see all those "Unspecified GSS failure" from<br>
gssproxy<br>
on the client side. Google tells me that many before me have wondered<br>
about<br>
it. Has anyone a clue?<br>
<br>
- The NFS4+krb5 mounting works, but what I ran into is the "nobody" issue.<br>
NFSv4 relies on idmapd to map users correctly, but this goes wrong, hence<br>
the "nobody" issue<br>
<br>
- One first problem is that I had not set the domain. My bad. Fixed and<br>
got<br>
one step further.<br>
   in idmapd.conf: Domain = <a href="http://hq.spinque.com" rel="noreferrer" target="_blank">hq.spinque.com</a><br>
<br>
- The second problem is that idmapd.conf in my synology says:<br>
   Method=nsswitch<br>
   GSS-Methods=static,synomap<br>
<br>
 No idea what "synomap" would be, but I guess GSS-Methods should be more<br>
like "static,nsswitch,synomap"<br>
 Indeed, everything works fine if I make static mappings for each LDAP<br>
user to a local user in Synology. But that's not how I want it.<br>
<br>
- Problem with all this is: no matter how I change these files, the next<br>
time I would save something from the Synology UI, these files would be<br>
overwritten<br>
<br>
Frustrating :(<br>
<br>
</blockquote>
I would only suggest you to raise the problem with Synology support and<br>
convince them adding SSSD build and use it. SSSD has nfsidmap module<br>
'sss' that does the right job on mapping based on what SSSD knows about<br>
Kerberos principals and user mapping for the domain.<br>
<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On 12 August 2015 at 13:33, Roberto Cornacchia <<br>
<a href="mailto:roberto.cornacchia@gmail.com" target="_blank">roberto.cornacchia@gmail.com</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wrote:<br>
<br>
</blockquote>
<br>
Enabled verbose output for rpc.idmapd as well, and now I see:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
nfsidmap[5034]: nss_getpwnam: name 'test1_l@localdomain' does not map<br>
into domain '<a href="http://hq.spinque.com" rel="noreferrer" target="_blank">hq.spinque.com</a>'<br>
<br>
<br>
On 12 August 2015 at 12:28, Roberto Cornacchia <<br>
<a href="mailto:roberto.cornacchia@gmail.com" target="_blank">roberto.cornacchia@gmail.com</a>> wrote:<br>
<br>
I have used<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
RPCGSSDARGS="-vvv"<br>
RPCSVCGSSDARGS="-vvv"<br>
<br>
in /etc/sysconfig/nfs , as suggested in<br>
<a href="http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/Installing_the_IPA_Client_on_Linux.html" rel="noreferrer" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/Installing_the_IPA_Client_on_Linux.html</a><br>
<br>
In the excerpt below, taken during the mount, meson is the client,<br>
spinque03 is the nfs server (synology).<br>
<br>
It still doesn't tell me much, perhaps I'm missing something?<br>
<br>
<br>
rpc.gssd[838]: handling gssd upcall (nfs/clnt19)<br>
rpc.gssd[838]: handle_gssd_upcall: 'mech=krb5 uid=0<br>
enctypes=18,17,16,23,3,1,2 '<br>
rpc.gssd[3328]: handling krb5 upcall (nfs/clnt19)<br>
rpc.gssd[3328]: process_krb5_upcall: service is '<null>'<br>
rpc.gssd[3328]: Full hostname for '<a href="http://spinque03.hq.spinque.com" rel="noreferrer" target="_blank">spinque03.hq.spinque.com</a>' is '<br>
<a href="http://spinque03.hq.spinque.com" rel="noreferrer" target="_blank">spinque03.hq.spinque.com</a>'<br>
rpc.gssd[3328]: Full hostname for '<a href="http://meson.hq.spinque.com" rel="noreferrer" target="_blank">meson.hq.spinque.com</a>' is '<br>
<a href="http://meson.hq.spinque.com" rel="noreferrer" target="_blank">meson.hq.spinque.com</a>'<br>
rpc.gssd[3328]: No key table entry found for MESON$@<a href="http://HQ.SPINQUE.COM" rel="noreferrer" target="_blank">HQ.SPINQUE.COM</a><br>
while<br>
getting keytab entry for 'MESON$@<a href="http://HQ.SPINQUE.COM" rel="noreferrer" target="_blank">HQ.SPINQUE.COM</a>'<br>
rpc.gssd[3328]: No key table entry found for root/<br>
<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a> while getting keytab entry for<br>
'root/<br>
<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a>'<br>
rpc.gssd[3328]: No key table entry found for nfs/<br>
<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a> while getting keytab entry for<br>
'nfs/<br>
<br>
<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a>'<br>
rpc.gssd[3328]: Success getting keytab entry for 'host/<br>
<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a>'<br>
rpc.gssd[3328]: Successfully obtained machine credentials for principal<br>
'host/<a href="mailto:meson.hq.spinque.com@HQ.SPINQUE.COM" target="_blank">meson.hq.spinque.com@HQ.SPINQUE.COM</a>' stored in ccache 'FILE:/tmp/<br>
<a href="http://krb5ccmachine_HQ.SPINQUE.COM" rel="noreferrer" target="_blank">krb5ccmachine_HQ.SPINQUE.COM</a>'<br>
rpc.gssd[3328]: INFO: Credentials in CC 'FILE:/tmp/<br>
<a href="http://krb5ccmachine_HQ.SPINQUE.COM" rel="noreferrer" target="_blank">krb5ccmachine_HQ.SPINQUE.COM</a>' are good until 1439461246<br>
rpc.gssd[3328]: using FILE:/tmp/<a href="http://krb5ccmachine_HQ.SPINQUE.COM" rel="noreferrer" target="_blank">krb5ccmachine_HQ.SPINQUE.COM</a> as<br>
credentials cache for machine creds<br>
rpc.gssd[3328]: using environment variable to select krb5 ccache<br>
FILE:/tmp/<a href="http://krb5ccmachine_HQ.SPINQUE.COM" rel="noreferrer" target="_blank">krb5ccmachine_HQ.SPINQUE.COM</a><br>
gssproxy[809]: (OID: { 1 2 840 113554 1 2 2 }) Unspecified GSS failure.<br>
Minor code may provide more information, No credentials cache found<br>
gssproxy[798]: gssproxy[809]: (OID: { 1 2 840 113554 1 2 2 })<br>
Unspecified<br>
GSS failure.  Minor code may provide more information, No credentials<br>
cache<br>
found<br>
rpc.gssd[3328]: creating tcp client for server <a href="http://spinque03.hq.spinque.com" rel="noreferrer" target="_blank">spinque03.hq.spinque.com</a><br>
rpc.gssd[3328]: DEBUG: port already set to 2049<br>
rpc.gssd[3328]: creating context with server<br>
<a href="mailto:nfs@spinque03.hq.spinque.com" target="_blank">nfs@spinque03.hq.spinque.com</a><br>
rpc.gssd[3328]: DEBUG: serialize_krb5_ctx: lucid version!<br>
rpc.gssd[3328]: prepare_krb5_rfc4121_buffer: protocol 1<br>
rpc.gssd[3328]: prepare_krb5_rfc4121_buffer: serializing key with<br>
enctype<br>
18 and size 32<br>
rpc.gssd[3328]: doing downcall: lifetime_rec=86399 acceptor=<br>
<a href="mailto:nfs@spinque03.hq.spinque.com" target="_blank">nfs@spinque03.hq.spinque.com</a><br>
rpc.gssd[838]: handling gssd upcall (nfs/clnt19)<br>
rpc.gssd[838]: handle_gssd_upcall: 'mech=krb5 uid=1005<br>
enctypes=18,17,16,23,3,1,2 '<br>
rpc.gssd[3337]: handling krb5 upcall (nfs/clnt19)<br>
rpc.gssd[3337]: process_krb5_upcall: service is '<null>'<br>
gssproxy[809]: (OID: { 1 2 840 113554 1 2 2 }) Unspecified GSS failure.<br>
Minor code may provide more information, No credentials cache found<br>
gssproxy[798]: gssproxy[809]: (OID: { 1 2 840 113554 1 2 2 })<br>
Unspecified<br>
GSS failure.  Minor code may provide more information, No credentials<br>
cache<br>
found<br>
rpc.gssd[3337]: creating tcp client for server <a href="http://spinque03.hq.spinque.com" rel="noreferrer" target="_blank">spinque03.hq.spinque.com</a><br>
rpc.gssd[3337]: DEBUG: port already set to 2049<br>
rpc.gssd[3337]: creating context with server<br>
<a href="mailto:nfs@spinque03.hq.spinque.com" target="_blank">nfs@spinque03.hq.spinque.com</a><br>
rpc.gssd[3337]: DEBUG: serialize_krb5_ctx: lucid version!<br>
rpc.gssd[3337]: prepare_krb5_rfc4121_buffer: protocol 1<br>
rpc.gssd[3337]: prepare_krb5_rfc4121_buffer: serializing key with<br>
enctype<br>
18 and size 32<br>
rpc.gssd[3337]: doing downcall: lifetime_rec=85675 acceptor=<br>
<a href="mailto:nfs@spinque03.hq.spinque.com" target="_blank">nfs@spinque03.hq.spinque.com</a><br>
<br>
<br>
On 12 August 2015 at 02:46, Roberto Cornacchia <<br>
<a href="mailto:roberto.cornacchia@gmail.com" target="_blank">roberto.cornacchia@gmail.com</a>> wrote:<br>
<br>
Hi,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I am trying to use a Synology NAS station in my FreeIPA domain to host<br>
automounted home directories (not created automatically for now).<br>
<br>
I got almost everything working, but I seem to have a problem with<br>
kerberized nfs.<br>
<br>
The NAS logs in the LDAP domain and seems happy with the kerberos<br>
principal that I uploaded.<br>
<br>
<br>
<br>
* If I use plain nfs4 without krb5<br>
<br>
- /etc/exports -<br>
/volume1/shared_homes<br>
<br>
<a href="http://192.168.0.0/24(rw,async,no_wdelay,all_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)" rel="noreferrer" target="_blank">192.168.0.0/24(rw,async,no_wdelay,all_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)</a><br>
<br>
then I can mount it and use it (it even works with automount). But only<br>
using all_squash. Not useful:<br>
<br>
<br>
* If I use krb5<br>
<br>
- /etc/exports -<br>
/volume1/shared_homes<br>
<br>
<a href="http://192.168.0.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=krb5,anonuid=1025,anongid=100)" rel="noreferrer" target="_blank">192.168.0.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=krb5,anonuid=1025,anongid=100)</a><br>
<br>
then I can kinit with an LDAP user, mount it with sec=krb5, but I get<br>
"nobody" as file owner.<br>
<br>
This is done from a FC22 client, perfectly enrolled in freeIPA.<br>
<br>
The client's log contains several of such errors:<br>
<br>
gssproxy[807]: (OID: { 1 2 840 113554 1 2 2 }) Unspecified GSS failure.<br>
Minor code may provide more information, No credentials cache found<br>
<br>
<br>
Any tip to help me understand what the problem is?<br>
Roberto<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</blockquote></blockquote>
--<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Manage your subscription for the Freeipa-users mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
<br>
</blockquote>
<br>
<br>
--<br>
/ Alexander Bokovoy<br>
<br>
</blockquote></blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
Manage your subscription for the Freeipa-users mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
</blockquote>
<br>
<br>
-- <br>
/ Alexander Bokovoy<br>
</div></div></blockquote></div><br></div>