<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    please see attached patch, which is amended Daniel Gollubs' patch
    from thread
    <pre>[SSSD] [PATCH] PAM: Add domains= option to pam_sss (<a class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/pipermail/sssd-devel/2014-July/020867.html">https://lists.fedorahosted.org/pipermail/sssd-devel/2014-July/020867.html</a>). 

I have just fixed nitpick found by Jakub and rebased it on top of previous patch in this thread. 

and I also changed this:
</pre>
    Because I think dom-&gt;name would be uninitialized. However, I
    haven't tested this patch.<br>
    <pre>@@ -836,12 +867,22 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd)
             ret = ENOENT;
             goto done;
         }

        /* skip this domain if not requested */
-        if (!is_domain_requested(pd, dom-&gt;name)) {
+        if (!is_domain_requested(pd, pd-&gt;domain)) {
            ret = ENOENT;
            goto done;
        }


Thanks!


</pre>
    <div class="moz-cite-prefix">On 09/27/2014 12:39 PM, Pavel Reichl
      wrote:<br>
    </div>
    <blockquote cite="mid:542693F9.3080003@redhat.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      Attached patch now contains both options.<br>
      <br>
      Thanks.<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 09/25/2014 03:57 PM, Pavel Reichl
        wrote:<br>
      </div>
      <blockquote cite="mid:54241F65.8000605@redhat.com" type="cite">Hello,

        <br>
        <br>
        please see attached patch which adds first of two options
        proposed in <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
href="https://fedorahosted.org/sssd/wiki/DesignDocs/RestrictDomainsInPAM">https://fedorahosted.org/sssd/wiki/DesignDocs/RestrictDomainsInPAM</a>
        <br>
        <br>
        Thanks! <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
sssd-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sssd-devel@lists.fedorahosted.org">sssd-devel@lists.fedorahosted.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/sssd-devel">https://lists.fedorahosted.org/mailman/listinfo/sssd-devel</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sssd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sssd-devel@lists.fedorahosted.org">sssd-devel@lists.fedorahosted.org</a>
<a class="moz-txt-link-freetext" href="https://lists.fedorahosted.org/mailman/listinfo/sssd-devel">https://lists.fedorahosted.org/mailman/listinfo/sssd-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>