105 lines
3.3 KiB
HTML
105 lines
3.3 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Module HowTo - Defining the RDN</title>
|
||
|
<link rel="stylesheet" type="text/css" href="style/layout.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<p align="center">
|
||
|
<script type="text/javascript"><!--
|
||
|
google_ad_client = "pub-4179059556107138";
|
||
|
google_alternate_ad_url = "http://lam.sourceforge.net/google_adsense_script.html";
|
||
|
google_ad_width = 728;
|
||
|
google_ad_height = 90;
|
||
|
google_ad_format = "728x90_as";
|
||
|
google_ad_type = "text_image";
|
||
|
google_ad_channel ="";
|
||
|
google_page_url = document.location;
|
||
|
google_color_border = "EEEEEE";
|
||
|
google_color_bg = "FFFFFF";
|
||
|
google_color_link = "0000FF";
|
||
|
google_color_url = "008000";
|
||
|
google_color_text = "000000";
|
||
|
//--></script>
|
||
|
<script type="text/javascript"
|
||
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||
|
</script>
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<div style="text-align: center;">
|
||
|
<h1>Module HowTo - Defining the RDN<br>
|
||
|
</h1>
|
||
|
<div style="text-align: left;"><br>
|
||
|
Every LDAP DN starts with a RDN (relative DN). This is the value of a
|
||
|
LDAP attribute. Users usually use "uid", groups use "cn".<br>
|
||
|
You can provide a list of suitable RDN attributes for your module and
|
||
|
give them a priority, too.<br>
|
||
|
<br>
|
||
|
</div>
|
||
|
<div style="text-align: left;">You will need to implement the function <span
|
||
|
style="font-weight: bold;">get_RDNAttributes()</span> or use <span
|
||
|
style="font-weight: bold;">meta['RDN']</span>.<br>
|
||
|
<br>
|
||
|
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br
|
||
|
style="font-weight: bold; text-decoration: underline;">
|
||
|
<br>
|
||
|
The <span style="font-style: italic;">posixAccount</span> module
|
||
|
offers to create accounts with DNs uid=foo,dc=.... and cn=foo,dc=...<br>
|
||
|
The uid attribute has a higher priority as it is the usual attribute
|
||
|
for Unix accounts.<br>
|
||
|
<br>
|
||
|
<table style="width: 100%; text-align: left;" class="mod-code"
|
||
|
border="0" cellpadding="2" cellspacing="2">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td style="vertical-align: top;"> /**<br>
|
||
|
* Returns meta data that is interpreted by parent
|
||
|
class<br>
|
||
|
*<br>
|
||
|
* @return array array with meta data<br>
|
||
|
*/<br>
|
||
|
<span style="font-weight: bold;"> function</span>
|
||
|
get_metaData() {<br>
|
||
|
$return = array();<br>
|
||
|
// RDN attributes<br>
|
||
|
$return["RDN"] = array("uid"
|
||
|
=> "normal", "cn" => "low");<br>
|
||
|
[...]<br>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<br>
|
||
|
<br>
|
||
|
<br>
|
||
|
<span style="font-weight: bold;"></span>
|
||
|
<h2><span style="font-weight: bold;"></span></h2>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<p align="center">
|
||
|
<script type="text/javascript"><!--
|
||
|
google_ad_client = "pub-4179059556107138";
|
||
|
google_alternate_ad_url = "http://lam.sourceforge.net/google_adsense_script.html";
|
||
|
google_ad_width = 728;
|
||
|
google_ad_height = 90;
|
||
|
google_ad_format = "728x90_as";
|
||
|
google_ad_type = "text_image";
|
||
|
google_ad_channel ="";
|
||
|
google_page_url = document.location;
|
||
|
google_color_border = "EEEEEE";
|
||
|
google_color_bg = "FFFFFF";
|
||
|
google_color_link = "0000FF";
|
||
|
google_color_url = "008000";
|
||
|
google_color_text = "000000";
|
||
|
//--></script>
|
||
|
<script type="text/javascript"
|
||
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||
|
</script>
|
||
|
</p>
|
||
|
|
||
|
</body>
|
||
|
</html>
|