25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

* doc/guide.tex: Minor examples improvement in LDAP

example (Thanks to Badlop) (EJAB-272).

SVN Revision: 904
This commit is contained in:
Mickaël Rémond 2007-08-31 16:41:31 +00:00
parent ae8fd17287
commit b7976603b1
2 changed files with 78 additions and 72 deletions

View File

@ -1205,7 +1205,7 @@ Also we want users to search each other. Let's see how we can set it up:</P><PRE
[{"Full Name", "FN"}, [{"Full Name", "FN"},
{"Nickname", "NICKNAME"}, {"Nickname", "NICKNAME"},
{"Birthday", "BDAY"}]} {"Birthday", "BDAY"}]}
]} ]},
... ...
}. }.
</PRE><P>Note that <TT>mod_vcard_ldap</TT> module checks for the existence of the user before </PRE><P>Note that <TT>mod_vcard_ldap</TT> module checks for the existence of the user before
@ -1213,7 +1213,7 @@ searching in his information in LDAP.</P><!--TOC paragraph Active Directory-->
<H5 CLASS="paragraph"><!--SEC ANCHOR -->Active Directory</H5><!--SEC END --><P> <H5 CLASS="paragraph"><!--SEC ANCHOR -->Active Directory</H5><!--SEC END --><P>
<A NAME="ad"></A> <A NAME="ad"></A>
</P><P>Active Directory is just an LDAP-server with predefined attributes. A sample </P><P>Active Directory is just an LDAP-server with predefined attributes. A sample
configuration is showed below:</P><PRE CLASS="verbatim"> {auth_method, ldap}. configuration is shown below:</P><PRE CLASS="verbatim"> {auth_method, ldap}.
{ldap_servers, ["office.org"]}. % List of LDAP servers {ldap_servers, ["office.org"]}. % List of LDAP servers
{ldap_base, "DC=office,DC=org"}. % Search base of LDAP directory {ldap_base, "DC=office,DC=org"}. % Search base of LDAP directory
{ldap_rootdn, "CN=Administrator,CN=Users,DC=office,DC=org"}. % LDAP manager {ldap_rootdn, "CN=Administrator,CN=Users,DC=office,DC=org"}. % LDAP manager
@ -1221,40 +1221,43 @@ configuration is showed below:</P><PRE CLASS="verbatim"> {auth_method, ldap}.
{ldap_uids, [{"sAMAccountName"}]}. {ldap_uids, [{"sAMAccountName"}]}.
{ldap_filter, "(memberOf=*)"}. {ldap_filter, "(memberOf=*)"}.
{mod_vcard_ldap, {modules,
[{ldap_vcard_map, ...
[{"NICKNAME", "%u", []}, {mod_vcard_ldap,
{"GIVEN", "%s", ["givenName"]}, [{ldap_vcard_map,
{"MIDDLE", "%s", ["initials"]}, [{"NICKNAME", "%u", []},
{"FAMILY", "%s", ["sn"]}, {"GIVEN", "%s", ["givenName"]},
{"FN", "%s", ["displayName"]}, {"MIDDLE", "%s", ["initials"]},
{"EMAIL", "%s", ["mail"]}, {"FAMILY", "%s", ["sn"]},
{"ORGNAME", "%s", ["company"]}, {"FN", "%s", ["displayName"]},
{"ORGUNIT", "%s", ["department"]}, {"EMAIL", "%s", ["mail"]},
{"CTRY", "%s", ["c"]}, {"ORGNAME", "%s", ["company"]},
{"LOCALITY", "%s", ["l"]}, {"ORGUNIT", "%s", ["department"]},
{"STREET", "%s", ["streetAddress"]}, {"CTRY", "%s", ["c"]},
{"REGION", "%s", ["st"]}, {"LOCALITY", "%s", ["l"]},
{"PCODE", "%s", ["postalCode"]}, {"STREET", "%s", ["streetAddress"]},
{"TITLE", "%s", ["title"]}, {"REGION", "%s", ["st"]},
{"URL", "%s", ["wWWHomePage"]}, {"PCODE", "%s", ["postalCode"]},
{"DESC", "%s", ["description"]}, {"TITLE", "%s", ["title"]},
{"TEL", "%s", ["telephoneNumber"]}]}, {"URL", "%s", ["wWWHomePage"]},
{ldap_search_fields, {"DESC", "%s", ["description"]},
[{"User", "%u"}, {"TEL", "%s", ["telephoneNumber"]}]},
{"Name", "givenName"}, {ldap_search_fields,
{"Family Name", "sn"}, [{"User", "%u"},
{"Email", "mail"}, {"Name", "givenName"},
{"Company", "company"}, {"Family Name", "sn"},
{"Department", "department"}, {"Email", "mail"},
{"Role", "title"}, {"Company", "company"},
{"Description", "description"}, {"Department", "department"},
{"Phone", "telephoneNumber"}]}, {"Role", "title"},
{ldap_search_reported, {"Description", "description"},
[{"Full Name", "FN"}, {"Phone", "telephoneNumber"}]},
{"Nickname", "NICKNAME"}, {ldap_search_reported,
{"Email", "EMAIL"}]} [{"Full Name", "FN"},
] {"Nickname", "NICKNAME"},
{"Email", "EMAIL"}]}
]},
...
}. }.
</PRE><!--TOC section Modules Configuration--> </PRE><!--TOC section Modules Configuration-->
<H2 CLASS="section"><!--SEC ANCHOR --><A NAME="htoc29">3.3</A>&#XA0;&#XA0;Modules Configuration</H2><!--SEC END --><P> <H2 CLASS="section"><!--SEC ANCHOR --><A NAME="htoc29">3.3</A>&#XA0;&#XA0;Modules Configuration</H2><!--SEC END --><P>

View File

@ -1490,7 +1490,7 @@ Also we want users to search each other. Let's see how we can set it up:
[{"Full Name", "FN"}, [{"Full Name", "FN"},
{"Nickname", "NICKNAME"}, {"Nickname", "NICKNAME"},
{"Birthday", "BDAY"}]} {"Birthday", "BDAY"}]}
]} ]},
... ...
}. }.
\end{verbatim} \end{verbatim}
@ -1504,7 +1504,7 @@ searching in his information in LDAP.
\ind{databases!Active Directory} \ind{databases!Active Directory}
Active Directory is just an LDAP-server with predefined attributes. A sample Active Directory is just an LDAP-server with predefined attributes. A sample
configuration is showed below: configuration is shown below:
\begin{verbatim} \begin{verbatim}
{auth_method, ldap}. {auth_method, ldap}.
@ -1515,40 +1515,43 @@ configuration is showed below:
{ldap_uids, [{"sAMAccountName"}]}. {ldap_uids, [{"sAMAccountName"}]}.
{ldap_filter, "(memberOf=*)"}. {ldap_filter, "(memberOf=*)"}.
{mod_vcard_ldap, {modules,
[{ldap_vcard_map, ...
[{"NICKNAME", "%u", []}, {mod_vcard_ldap,
{"GIVEN", "%s", ["givenName"]}, [{ldap_vcard_map,
{"MIDDLE", "%s", ["initials"]}, [{"NICKNAME", "%u", []},
{"FAMILY", "%s", ["sn"]}, {"GIVEN", "%s", ["givenName"]},
{"FN", "%s", ["displayName"]}, {"MIDDLE", "%s", ["initials"]},
{"EMAIL", "%s", ["mail"]}, {"FAMILY", "%s", ["sn"]},
{"ORGNAME", "%s", ["company"]}, {"FN", "%s", ["displayName"]},
{"ORGUNIT", "%s", ["department"]}, {"EMAIL", "%s", ["mail"]},
{"CTRY", "%s", ["c"]}, {"ORGNAME", "%s", ["company"]},
{"LOCALITY", "%s", ["l"]}, {"ORGUNIT", "%s", ["department"]},
{"STREET", "%s", ["streetAddress"]}, {"CTRY", "%s", ["c"]},
{"REGION", "%s", ["st"]}, {"LOCALITY", "%s", ["l"]},
{"PCODE", "%s", ["postalCode"]}, {"STREET", "%s", ["streetAddress"]},
{"TITLE", "%s", ["title"]}, {"REGION", "%s", ["st"]},
{"URL", "%s", ["wWWHomePage"]}, {"PCODE", "%s", ["postalCode"]},
{"DESC", "%s", ["description"]}, {"TITLE", "%s", ["title"]},
{"TEL", "%s", ["telephoneNumber"]}]}, {"URL", "%s", ["wWWHomePage"]},
{ldap_search_fields, {"DESC", "%s", ["description"]},
[{"User", "%u"}, {"TEL", "%s", ["telephoneNumber"]}]},
{"Name", "givenName"}, {ldap_search_fields,
{"Family Name", "sn"}, [{"User", "%u"},
{"Email", "mail"}, {"Name", "givenName"},
{"Company", "company"}, {"Family Name", "sn"},
{"Department", "department"}, {"Email", "mail"},
{"Role", "title"}, {"Company", "company"},
{"Description", "description"}, {"Department", "department"},
{"Phone", "telephoneNumber"}]}, {"Role", "title"},
{ldap_search_reported, {"Description", "description"},
[{"Full Name", "FN"}, {"Phone", "telephoneNumber"}]},
{"Nickname", "NICKNAME"}, {ldap_search_reported,
{"Email", "EMAIL"}]} [{"Full Name", "FN"},
] {"Nickname", "NICKNAME"},
{"Email", "EMAIL"}]}
]},
...
}. }.
\end{verbatim} \end{verbatim}