Novell Home

ACL Reset

Novell Cool Solutions: Cool Tool

Rate This Page

Reader Rating  stars  from 1 ratings

Digg This - Slashdot This

In Brief

Perl program to recreate all the default ACL's for users.

Vitals

Product Categories:
  • eDirectory
  • Functional Categories:
  • Secure Identity
  • User Management
  • Posted:19 May 2003
    File Size:1KB
    License:Free
    Download:/coolsolutions/tools/downloads/acl3.zip
    Publisher:Jim Schnitter

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    I helped a customer who needed to reset the four default ACL's on all 7000 of their users back to the defaults. This perl program creates an LDIF which accomplishes this tasks.

    Here are the steps you need to follow:

    If you don't have it, install Perl. I prefer the one from www.activestate.com.
    1. Create input file with all the user DN's
      c:> ldapsearch -h shiloh -b "o=novell" "objectclass=*" dn > users
    2. Create the LDIF that adds the default ACL's
      c:> perl acl3.pl users
    3. Import the acl.ldif file
      c:> ldapmodify -h shiloh -D "cn=admin,o=novell" -w novell -f acl.ldif
    4. (NOTE: You can find ldapsearch and ldapmodify in sys:Public\mgmt\ConsoleOne\1.2\bin )

      Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

      Reader Comments

      • This is a vey good idea. Keep it simple! Even the perl example is a good base to try other things. Only suggestion is that in the first search the objcectclass should look for inetOrgPerson

    Novell® Making IT Work As One

    © 2008 Novell, Inc. All Rights Reserved.