Issue 7631 - Overlay to rewrite value of attribute using regex
Summary: Overlay to rewrite value of attribute using regex
Status: UNCONFIRMED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: contrib (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords: has_patch
Depends on:
Blocks:
 
Reported: 2013-06-24 23:07 UTC by bart@icm.edu.pl
Modified: 2020-03-20 17:27 UTC (History)
0 users

See Also:


Attachments
bart-130624.patch (16.54 KB, text/plain)
2013-06-24 23:03 UTC, bart@icm.edu.pl
Details

Note You need to log in before you can comment on or make changes to this issue.
Description bart@icm.edu.pl 2013-06-24 23:03:03 UTC
I put patch here because the ftp server is full.
DB
Comment 1 bart@icm.edu.pl 2013-06-24 23:07:32 UTC
Full_Name: Dominik Bartkiewicz
Version: 
OS: Linux
URL: 
Submission from: (NULL) (89.73.105.138)


A simple overlay allows override attribute values​​.
In our case, it we replicate users date from three different servers and we
wanted to override attributes such as homeDirectory, shell.

a sample config:

overlay rewatt
ra_attribute homeDirectory
ra_regex "home/(users|staff|guest)"
ra_sub "icm/hydra/home/local"

DB
Comment 2 Howard Chu 2013-07-29 15:30:23 UTC
bart@icm.edu.pl wrote:
> --=_c864110a076fc513331e0370bcb9adbe
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset=UTF-8;
>   format=flowed
>
>
> I put patch here because the ftp server is full.
> DB

Kurt, the source file in the patch contains this header:

@@ -0,0 +1,467 @@
+/* rewatt.c - Overlay to rewrite some attribute  */
+/* Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was originally developed by the Dominik Bartkiewicz 
bart@icm.edu.pl for
+ * inclusion in OpenLDAP Software.
+ */

I presume we still need a formal IPR notice in the ITS?

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 bart@icm.edu.pl 2013-07-29 19:29:13 UTC
On Mon, 29 Jul 2013 08:30:23 -0700, Howard Chu wrote:
>
> I presume we still need a formal IPR notice in the ITS?

Is it enough:

The attached patch file is derived from OpenLDAP Software. All of the 
modifications to OpenLDAP Software represented in the following patch 
were developed by Dominik Bartkiewicz bart@icm.edu.pl. I have not 
assigned rights and/or interest in this work to any party.

DB