Hello<br>
        <div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><blockquote type="cite"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <br>
          <font face="sans-serif">We have several users who no longer
            need access, but may in the future, so we have set them to
            be Inactive
            in their profile.  However, we noticed that these accounts
            have re-activated
            themselves and those users could log back in if they wanted
            to.  How
            do we make accounts that we specifically make inactive by
            pressing the
            Inactivate button stay that way?</font>
          <br>
          <br>
          <font face="sans-serif">We are using the following 389
            versions
            on CentOS 5.7 64-bit:</font>
          <br>
          <br>
          <font face="sans-serif">389-ds-base-1.2.9.9-1.el5</font>
          <br>
          <font face="sans-serif">389-admin-1.1.29-1.el5</font>
          <br>
          <font face="sans-serif">389-ds-console-1.2.6-1.el5</font>
          <br>
          <font face="sans-serif">389-adminutil-1.1.15-1.el5</font>
          <br>
          <font face="sans-serif">389-admin-console-1.1.8-1.el5</font>
          <br>
          <font face="sans-serif">389-ds-console-doc-1.2.6-1.el5</font>
          <br>
          <font face="sans-serif">389-ds-base-libs-1.2.9.9-1.el5</font>
          <br>
          <font face="sans-serif">389-dsgw-1.1.9-1.el5</font>
          <br>
          <font face="sans-serif">389-console-1.1.7-3.el5</font>
          <br>
          <font face="sans-serif">389-admin-console-doc-1.1.8-1.el5</font>
          <br>
          <font face="sans-serif">389-ds-1.2.1-1.el5</font>
          <br>
          <br>
          <font face="sans-serif">Thanks for any help!</font>
          <br>
          <font face="sans-serif">Harry</font><br>
          <br>
        </blockquote>
        <div><br>
          Add below attribute with same value in user&#39;s ldap entry.<br>
          <span><br>
            nsAccountLock</span>: true<br>
          <br>
          # cat entry.ldif<br>
          dn: uid=tuser, ou=people,dc=example,dc=com<br>
          changetype: modify<br>
          add: nsaccountlock<br>
          nsaccountlock: true<br>
          <br>
          # ldapmodify -x -a -D &quot;cn=Directory manager&quot; -w password -f
          entry.ldif<br>
        </div>
      </div>
    </blockquote>
    <br></div></div>
    I don&#39;t think so.  The original poster mentioned the Inactivate
    button.  I assume this means using the Console feature to inactivate
    users.  Users inactivated in this way should not just magically
    become re-activated.  This is a problem.<br>
    <br></div></blockquote><div><br>Could be related to <a href="https://fedorahosted.org/389/ticket/300">https://fedorahosted.org/389/ticket/300</a> <br><br>I got a scenerio, where cos were getting corrupted &amp; Disbaled Roles stopped working over a <br>
period of time. Upgrading to 8.2.9 fixed the issue.<br><br><a href="http://rhn.redhat.com/errata/RHBA-2012-0510.html">http://rhn.redhat.com/errata/RHBA-2012-0510.html</a> <br><br>* Prior to this update, the cos cache could become corrupted under load. As a<br>
consequence, passwd policies defined by the subtree could fail to work. This<br>update modifies the update so that the cos cache no longer becomes corrupted and<br>passwd policies now persist. (BZ#787743)<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
    The problem with using plain ldapmodify is that it doesn&#39;t work with
    the mechanism used by the Console and the <a href="http://ns-inactivate.pl" target="_blank">ns-inactivate.pl</a> script,
    which use a Roles/CoS scheme to put inactive users into a specific
    Role and then use CoS to add nsAccountLock: TRUE to all members of
    that Role.<br>
    <br>
    The first step is to make sure that when you do a search of the
    supposedly inactive user&#39;s entry like this:<br>
    <br>
    ldapsearch -xLLL .... uid=inactiveuser \* nsAccountLock<br>
    <br>
    you see nsAccountLock: TRUE<br>
    <br>
    and then at some point in the future you see nsAccountLock: FALSE or
    just don&#39;t see it at all.<br>
    <br>
    When you say &quot;log back in&quot; - just after inactivating the user in the
    Console, did you verify that the user could not log in?  And then
    did you at some point in the future see that the user could log in
    again?  When you say &quot;log back in&quot; - do you mean the operating
    system login?<br>
    <br></div></blockquote></div><br>Regards<br>Arpit Tolani<br><br>