]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/add.c
trim listed modules
[openldap] / servers / slapd / back-shell / add.c
index 189324e818918ab08b8e65203b6c9059fade280b..3f7950cc3243c5457036887dff708ad4000a0e09 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -55,7 +55,7 @@ shell_back_add(
        }
 
        if ( ! access_allowed( op, op->oq_add.rs_e,
-               entry, NULL, ACL_WRITE, NULL ) )
+               entry, NULL, ACL_WADD, NULL ) )
        {
                send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL );
                return -1;