Remove consistent ACL flag

The following code for a button removes the flag and allows me to open the database with manager rights.

From time to time I receive databases that have enforce consistent ACL switched on.

The following code for a button removes the flag and allows me to open the database with manager rights.

Event (Declarations): 
Declare Function NSFDbOpen Lib "nnotes.dll" (Byval dbName As String, hDB As Long) As Integer 
Declare Function NSFDbClose Lib "nnotes.dll" (Byval hDB As Long) As Integer 
Declare Function NSFDbReadACL Lib "nnotes.dll" (Byval hDB As Long, hACL As Long) As Integer 
Declare Function ACLSetFlags Lib "nnotes.dll" (Byval hACL As Long, Byval Flags As Long ) As Integer 
Declare Function NSFDbStoreACL Lib "nnotes.dll" (Byval hDB As Long, Byval hACL As Long, Byval ObjectID As Long, Method As Long) As Integer 


Event Click: 
Dim hDB As Long, hACL As Long 
rc = NSFDbOpen("YourDatabase.nsf", hDB) 
rc = NSFDbReadACL(hDB, hACL) 
rc = ACLSetFlags(hACL, &h0) 
rc = NSFDbStoreACL(hDB, hACL, 0, 0) 
rc = NSFDbClose(hdb) 
This was first published in June 2002

Dig deeper on Domino Resources

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close