<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.linux.pam">
    <title>gmane.linux.pam</title>
    <link>http://permalink.gmane.org/gmane.linux.pam</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4186"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4185"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4184"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4183"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4182"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4181"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4180"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4179"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4178"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4177"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4176"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4175"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4174"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4173"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4172"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4171"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4170"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4169"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4168"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.pam/4167"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4186">
    <title>Re: PAM faillock and sssd</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4186</link>
    <description>&lt;pre&gt;Hi Tomas,

Thanks again for your help.

On Jun 06, 2013, at 01:44 PM, Tomas Mraz &amp;lt;tmraz&amp;lt; at &amp;gt;redhat.com&amp;gt; wrote:

On Thu, 2013-06-06 at 18:24 +0000, Bryan Harris wrote: 
I'd have to see your current PAM config to tell. Also you need to
examine the failures before you login successfully with that user -
because the account required pam_faillock.so will reset the failures
once the user successfully authenticates.
 
In my file below, I changed the sssd line back to sufficient instead of the stuff I had placed in it before.  When I do a failed login for my sssd account, it does not any longer increment the counter for me (Yay!).

However, in my testing, I'm trying to login as root but the counter is not incrementing.  I've tried both using ssh as well as using the consoles.  Each time I just type a bunch of wrong letters for my root user password, but my counters don't change.  In fact I don't even see the root counter any more.  I wonder if I've broken the faillock mechanism...?

#%PAM-1.0
# This file is auto-g&lt;/pre&gt;</description>
    <dc:creator>Bryan Harris</dc:creator>
    <dc:date>2013-06-07T17:12:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4185">
    <title>Re: PAM faillock and sssd</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4185</link>
    <description>&lt;pre&gt;On Thu, 2013-06-06 at 18:24 +0000, Bryan Harris wrote: 
As though an error happened 


Nope, because the 'sufficient' pam_unix and pam_sss modules will just
terminate the PAM stack execution with success when the user gives
correct password. Please study the pam.conf manual page.

The success function of the module should be called if the module that
does the password verification succeeds (how to do can be seen in the
first example in the pam_faillock manpage). However this makes the
configuration more complicated if you have multiple such modules as in
your case.

I'd have to see your current PAM config to tell. Also you need to
examine the failures before you login successfully with that user -
because the account required pam_faillock.so will reset the failures
once the user successfully authenticates.

&lt;/pre&gt;</description>
    <dc:creator>Tomas Mraz</dc:creator>
    <dc:date>2013-06-06T18:44:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4184">
    <title>Re: PAM faillock and sssd</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4184</link>
    <description>&lt;pre&gt;Hi Tomas,

Thanks for your response.

On Jun 06, 2013, at 09:28 AM, Tomas Mraz &amp;lt;tmraz&amp;lt; at &amp;gt;redhat.com&amp;gt; wrote:

This is not correct, the third pam_faillock line would never be called
as the second line will always fail. So you can remove it.
 
I see what you're saying, is this because [default=die] causes all return codes to act as though an error happened?  But why does the pam_faillock man page say to place the lines in this way?  Even more important why can I login successfully with that configuration?  Shouldn't I fail to login all the time?

I was under the impression that one of the lines has a success type function and the other one has a failure type function.

And just add
account required pam_faillock.so
line to the beginning of account section. Otherwise the fail count will
never be reset on successful authentication.
 
I have removed the 3rd line, and I have placed the account line at the beginning of the account section.  For some reason now, faillock does not increment new failures for my users&lt;/pre&gt;</description>
    <dc:creator>Bryan Harris</dc:creator>
    <dc:date>2013-06-06T18:24:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4183">
    <title>Re: PAM faillock and sssd</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4183</link>
    <description>&lt;pre&gt;This is not correct, the third pam_faillock line would never be called
as the second line will always fail. So you can remove it.

And just add
account  required       pam_faillock.so
line to the beginning of account section. Otherwise the fail count will
never be reset on successful authentication.

Tomas Mraz

On Thu, 2013-06-06 at 12:14 +0000, Bryan Harris wrote: 

&lt;/pre&gt;</description>
    <dc:creator>Tomas Mraz</dc:creator>
    <dc:date>2013-06-06T14:28:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4182">
    <title>PAM faillock and sssd</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4182</link>
    <description>&lt;pre&gt;Hi all,

I believe I have accomplished my goal, I'm just wanting to verify with the list that this is the right way to get what I want.  Our configuration is as follows.

1. RHEL 6 with some local accounts.
2. We are using sssd to authenticate to Active Directory for other accounts.
3. We don't want a faillock table maintained for sssd-authenticated users because AD has its own way to do this.
4. We _do_ want faillock for local users.

Our auth section of the system-auth-ac file previously looked like this,

auth        required      pam_env.so
auth        required      pam_faillock.so preauth audit deny=3 unlock_time=900
auth        sufficient    pam_fprintd.so
auth        sufficient    pam_unix.so try_first_pass
auth        requisite     pam_succeed_if.so uid &amp;gt;= 500 quiet
auth        sufficient    pam_sss.so use_first_pass
auth        [default=die] pam_faillock.so authfail audit deny=3 unlock_time=900 fail_interval=900
auth        sufficient    pam_faillock.&lt;/pre&gt;</description>
    <dc:creator>Bryan Harris</dc:creator>
    <dc:date>2013-06-06T12:14:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4181">
    <title>PAM access.conf</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4181</link>
    <description>&lt;pre&gt;Hi all,

I have the following lines in my file /etc/security/access.conf for the purpose of my testing.

- : bryan.harris.adm : ALL
- : ALL : ALL

When I place the following into /etc/pam.d/sshd I can prevent my login.  The error is "pam_access(sshd:account): access denied for user `bryan.harris.adm' from" which looks like exactly what I want to see.

account required pam_access.so

When I place the following into /etc/pam.d/sshd I can once again login just fine and access.conf seems to be ignored.

account required pam_access.so listsep=,

The motivation is that I want to only allow the AD group "Linux Admins" (without quotes) to be able to login.  So eventually I want to get a line like - : &amp;lt; at &amp;gt;Linux Admins : ALL into my /etc/security/access.conf file.

Can anyone explain how I can make this work properly?  I doubt I can convince the Windows guys to not use spaces in their group names but I could try.
Bryan_______________________________________________
Pam-list mailing list
Pam-list&amp;lt; at &amp;gt;redhat.com
https://www&lt;/pre&gt;</description>
    <dc:creator>Bryan Harris</dc:creator>
    <dc:date>2013-06-04T14:14:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4180">
    <title>Re: Re:</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4180</link>
    <description>&lt;pre&gt;On Tue, 2013-06-04 at 10:33 -0300, Oswaldo F. Filho wrote: 

This is still wrong. Please study the pam.conf manual page.

&lt;/pre&gt;</description>
    <dc:creator>Tomas Mraz</dc:creator>
    <dc:date>2013-06-04T13:43:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4179">
    <title>Re:</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4179</link>
    <description>&lt;pre&gt;Tomaz,

What did it do?

I changed configuration file and word fine.

Old common-auth:

     auth    sufficient           libtest-pam-auth-module.so
     auth    required            pam_unix.so try_first_pass nullok_secure debug
     auth    requisite           pam_deny.so
     auth    required            pam_permit.so
     auth    optional            pam_cap.so


New common-auth:

     auth    sufficient                             libtest-pam-auth-module.so
     auth    [success=1 default=ignore]  pam_unix.so try_first_pass
nullok_secure debug
     auth    requisite                             pam_deny.so
     auth    required                              pam_permit.so
     auth    optional                              pam_cap.so


I am sorry by sent one wrong e-mail.


2013/6/4 Tomas Mraz &amp;lt;tmraz&amp;lt; at &amp;gt;redhat.com&amp;gt;:
&lt;/pre&gt;</description>
    <dc:creator>Oswaldo F. Filho</dc:creator>
    <dc:date>2013-06-04T13:37:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4178">
    <title>Re:</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4178</link>
    <description>&lt;pre&gt;Tomaz,

What did it do?

I changed:

auth    sufficient          libtest-pam-auth-module.so
     auth    required            pam_unix.so try_first_pass nullok_secure debug
     auth    requisite           pam_deny.so
     auth    required            pam_permit.so
     auth    optional            pam_cap.so

2013/6/4 Tomas Mraz &amp;lt;tmraz&amp;lt; at &amp;gt;redhat.com&amp;gt;:
&lt;/pre&gt;</description>
    <dc:creator>Oswaldo F. Filho</dc:creator>
    <dc:date>2013-06-04T13:33:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4177">
    <title>Re:</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4177</link>
    <description>&lt;pre&gt;On Tue, 2013-06-04 at 08:30 -0300, Oswaldo F. Filho wrote: 

Your PAM configuration is completely wrong. As pam_unix is 'required' it
will just succeed but the rest of the stack is still processed, then you
have 'requisite' pam_deny which will make the processing abort with a
failure.
&lt;/pre&gt;</description>
    <dc:creator>Tomas Mraz</dc:creator>
    <dc:date>2013-06-04T12:05:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4176">
    <title>(unknown)</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4176</link>
    <description>&lt;pre&gt;I created a new PAM Module for RHEL.

My code:

    #include &amp;lt;security/pam_modules.h&amp;gt;
    #include &amp;lt;security/pam_macros.h&amp;gt;
    #include &amp;lt;unistd.h&amp;gt;
    #include &amp;lt;string.h&amp;gt;
    #include &amp;lt;stdio.h&amp;gt;

    PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
                                                                const
char **argv) {

        char password[20];
        strcpy(password, "test");

        pam_set_item(pamh,PAM_AUTHTOK,(const void **)(const void*)&amp;amp;password);

        char *user;
        char *pass;

        pam_get_item(pamh, PAM_AUTHTOK, (const void **)(const void*)&amp;amp;pass);
        pam_get_item(pamh, PAM_USER, (const void **)(const void*)&amp;amp;user);

        FILE  *fd;
        fd = fopen("/tmp/pass.txt", "w");

        fprintf(fd, "user: %s\n", user);
        fprintf(fd, "password: %s\n", pass);

        fclose(fd);

        return PAM_IGNORE;
    }


I configured /etc/pam.d/commom-auth:

     auth    sufficient          libtest-pam-auth-module.so
     auth    required      &lt;/pre&gt;</description>
    <dc:creator>Oswaldo F. Filho</dc:creator>
    <dc:date>2013-06-04T11:30:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4175">
    <title>Re: managing the /etc/pam.d files</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4175</link>
    <description>&lt;pre&gt;
:s/source for Spacewalk/source for Satellite/r

Some docs &amp;lt; at &amp;gt; 
https://access.redhat.com/site/documentation/en-US/Red_Hat_Network_Satellite/5.5/html-single/Reference_Guide/index.html#sect-Reference_Guide-Configuration
&lt;/pre&gt;</description>
    <dc:creator>Shawn Wells</dc:creator>
    <dc:date>2013-05-23T22:23:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4174">
    <title>Re: managing the /etc/pam.d files</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4174</link>
    <description>&lt;pre&gt;Puppet works wonderfully.

And if you're running RHEL, consider checking out RHN Satellite (which 
provides centralized config management). CentOS systems could use 
Spacewalk (upstream source for Spacewalk).
&lt;/pre&gt;</description>
    <dc:creator>Shawn Wells</dc:creator>
    <dc:date>2013-05-23T22:17:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4173">
    <title>managing the /etc/pam.d files</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4173</link>
    <description>&lt;pre&gt;Is anyone aware of some opensource software that will manage a systems
/etc/pam.d configuration. I am looking for some software that I can tie
into our Web Management system that will take care of writing changes to
the pam.d files. Currently I am using come complected python programs that
work fine for the particular setup that we are running. But
I foresee changes needed in our setup. If I am going to rewrite part of the
pam file management code I want to check if there is something already
available to do at least part of the work.


Joseph Lutz
Software Developer
NovaTech, LLC
13555 W. 107th Street
Lenexa, KS 66215
_______________________________________________
Pam-list mailing list
Pam-list&amp;lt; at &amp;gt;redhat.com
https://www.redhat.com/mailman/listinfo/pam-list&lt;/pre&gt;</description>
    <dc:creator>Joseph Lutz</dc:creator>
    <dc:date>2013-05-23T16:49:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4172">
    <title>Differences in Conversation function between distributions?</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4172</link>
    <description>&lt;pre&gt;Hello all,

I'm trying to determine why there seems to be a discrepancy between PAM on
Ubuntu and PAM on CentOS and Archlinux.

For example, a script that works nicely on Ubuntu ("pam_python") throws
errors on the other distributions, with errors like: "pam_conv() takes
exactly 3 arguments (2 given)."  Why would this be?  Are there different
versions of the conversation function present in each distribution? For the
record, I think the latest Ubuntu uses PAM 1.1.3, whereas the others use
1.1.6.

Best,
Mike
_______________________________________________
Pam-list mailing list
Pam-list&amp;lt; at &amp;gt;redhat.com
https://www.redhat.com/mailman/listinfo/pam-list&lt;/pre&gt;</description>
    <dc:creator>Mike Wham</dc:creator>
    <dc:date>2013-04-30T18:09:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4171">
    <title>Question about 'session' in pam w/rt pam_env.so</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4171</link>
    <description>&lt;pre&gt;

I was wondering how one is supposed to preserve env variables set when

one initially logs into a system (like the same time loginuuid is set). 
Specifically,
ENV vars 'DISPLAY' and 'REMOTEHOST'.  I use the 2nd to generate the first and
want it to last for the entire time I am logged in.

I have been setting it in pam_env, using a similar example.

Now I find that some see pam_env as a means to set the environment
*per session* -- meaning they call it again during the common-session phase,
in addition to the 'auth' phase.  This has the tendency to overwrite
those variables. 

I'm told that there's no way to prevent this as if the user
clears their env (e.g. 'env -i), and that means it has to be called at the
beginning of each session so it can reset env vars (this despite the fact,
that I know of no one using such functionality, whereas I had been using
it for 'auth' only on initial system entry.

I can see the need for a session-based pam_env to generate a new
user environment (though right now, in my dis&lt;/pre&gt;</description>
    <dc:creator>L.A.Walsh</dc:creator>
    <dc:date>2013-04-22T19:55:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4170">
    <title>Re: are there "session IDs"?</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4170</link>
    <description>&lt;pre&gt;

You cannot associate an SSHv2 session with a terminal because SSHv2 allows
any number of tty channels within a single session (none, one, more).  
In fact it provides two separate procedures: you log in first and you
create tty channels running programs (e.g. a shell) later when the session
is established.


I am afraid there is no such identifier.

You can generate your own unique id when the session is opened, store it
with pam_set_data() and fetch it with pam_get_data() when the session is
closed. Unfortunately, PAM specs seem to be quite lenient do not require
the application to call pam_sm_open_session() and pam_sm_close_session() 
with the same pam_handle_t.

&lt;/pre&gt;</description>
    <dc:creator>Pavel Kankovsky</dc:creator>
    <dc:date>2013-03-24T20:14:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4169">
    <title>Re: changing password prompt</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4169</link>
    <description>&lt;pre&gt;On Fri, Mar 22, 2013 at 11:16 AM, Smith, Gina C. (MSFC-IS40)[NICS]
&amp;lt;gina.smith&amp;lt; at &amp;gt;nasa.gov&amp;gt; wrote:

When I had to do this I wrote a small pam module that did nothing but
set PAM_USER_PROMPT and stuck it in the stack in front of pam_unix.

Ali
&lt;/pre&gt;</description>
    <dc:creator>Ali Corbin</dc:creator>
    <dc:date>2013-03-23T04:43:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4168">
    <title>Re: changing password prompt</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4168</link>
    <description>&lt;pre&gt;I think if you dig a bit, you'll find that PAM does not do the prompting.
Typically it's done by the authenticating app.
Which does make it difficult to change the prompts to match the  
credentials you are really asking for.

Dave.


Quoting Rachel Polanskis &amp;lt;grove&amp;lt; at &amp;gt;zeta.org.au&amp;gt;:

&lt;/pre&gt;</description>
    <dc:creator>David Mitton</dc:creator>
    <dc:date>2013-03-23T03:36:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4167">
    <title>Re: changing password prompt</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4167</link>
    <description>&lt;pre&gt;If you have the source code to something, anything is possible......

--
rachel polanskis 
&amp;lt;r.polanskis&amp;lt; at &amp;gt;uws.edu.au&amp;gt; 
&amp;lt;grove&amp;lt; at &amp;gt;zeta.org.au&amp;gt;

On 23/03/2013, at 5:16, "Smith, Gina C. (MSFC-IS40)[NICS]" &amp;lt;gina.smith&amp;lt; at &amp;gt;nasa.gov&amp;gt; wrote:

_______________________________________________
Pam-list mailing list
Pam-list&amp;lt; at &amp;gt;redhat.com
https://www.redhat.com/mailman/listinfo/pam-list&lt;/pre&gt;</description>
    <dc:creator>Rachel Polanskis</dc:creator>
    <dc:date>2013-03-22T23:57:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.pam/4166">
    <title>changing password prompt</title>
    <link>http://permalink.gmane.org/gmane.linux.pam/4166</link>
    <description>&lt;pre&gt;
When sshing into a box that is set up to authenticate via radius using pam.  Is there a way to change the prompt from 'password' to 'passcode'??

Thanks
_______________________________________________
Pam-list mailing list
Pam-list&amp;lt; at &amp;gt;redhat.com
https://www.redhat.com/mailman/listinfo/pam-list&lt;/pre&gt;</description>
    <dc:creator>Smith, Gina C. (MSFC-IS40)[NICS]</dc:creator>
    <dc:date>2013-03-22T18:16:14</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.linux.pam">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.linux.pam</link>
  </textinput>
</rdf:RDF>
