Add openldap ebuild with `use prefix`-protected group/user creation.
[wtk-prefix-overlay.git] / net-nds / openldap / files / openldap-2.3.21-ppolicy.patch
diff --git a/net-nds/openldap/files/openldap-2.3.21-ppolicy.patch b/net-nds/openldap/files/openldap-2.3.21-ppolicy.patch
new file mode 100644 (file)
index 0000000..06bbee8
--- /dev/null
@@ -0,0 +1,13 @@
+--- clients.orig/tools/common.c        2006-05-05 00:24:01.000000000 -0700
++++ clients/tools/common.c     2006-05-05 00:24:13.000000000 -0700
+@@ -904,8 +904,8 @@
+ tool_bind( LDAP *ld )
+ {
+ #ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
+-      if ( ppolicy ) {
+               LDAPControl *ctrls[2], c;
++      if ( ppolicy ) {
+               c.ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST;
+               c.ldctl_value.bv_val = NULL;
+               c.ldctl_value.bv_len = 0;
+