aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-08-28 06:44:35 +0000
committerRuss Allbery <rra@stanford.edu>2007-08-28 06:44:35 +0000
commit9b6c4dd39ad97575b742ae3608b942e44e94a202 (patch)
treef8dce5cf27f9a17dcee1714494c50f10e849955f
parent7eee5068d26582c394b3f2c80c0a44877af2c84e (diff)
No need to pass a database handle into the ACL constructors any more.
I was only going to use that for the krb5-group ACL, which I won't be implementing.
-rw-r--r--docs/design-api5
-rw-r--r--perl/Wallet/ACL/Base.pm4
-rw-r--r--perl/Wallet/ACL/Krb5.pm2
3 files changed, 5 insertions, 6 deletions
diff --git a/docs/design-api b/docs/design-api
index e58f050..760a0a2 100644
--- a/docs/design-api
+++ b/docs/design-api
@@ -85,12 +85,11 @@ Object API
ACL API
- new(DBH)
+ new()
Creates a persistant ACL verifier for the given ACL type. This may do
nothing, but some ACL verifiers require some persistant data, like a
- persistant LDAP connection. The database handle should be provided to
- the constructor, but a given ACL implementation may not use it.
+ persistant LDAP connection.
check(PRINCIPAL, ACL)
diff --git a/perl/Wallet/ACL/Base.pm b/perl/Wallet/ACL/Base.pm
index 0670537..aad126d 100644
--- a/perl/Wallet/ACL/Base.pm
+++ b/perl/Wallet/ACL/Base.pm
@@ -77,10 +77,10 @@ from it. It is not used directly.
=over 4
-=item new(DBH)
+=item new()
Creates a new ACL verifier. The generic function provided here just creates
-and blesses an object and ignores the provided database handle.
+and blesses an object.
=item check(PRINCIPAL, ACL)
diff --git a/perl/Wallet/ACL/Krb5.pm b/perl/Wallet/ACL/Krb5.pm
index bc03405..b0a1b62 100644
--- a/perl/Wallet/ACL/Krb5.pm
+++ b/perl/Wallet/ACL/Krb5.pm
@@ -76,7 +76,7 @@ principal if and only if the principal exactly matches the ACL.
=over 4
-=item new(DBH)
+=item new()
Creates a new ACL verifier. The database handle is not used.