From 9c11783e056a207b350cc691eb36f01b0f431cbf Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 24 Mar 2008 18:57:41 +0000 Subject: [PATCH] * doc/guide.tex: mod_vcard_ldap replace NICK with NICKNAME (thanks to Andreas Ntaflos) * doc/guide.html: Likewise SVN Revision: 1254 --- ChangeLog | 4 ++++ doc/guide.html | 12 ++++++------ doc/guide.tex | 12 ++++++------ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index feba5c99e..4869eb8ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-24 Badlop + * doc/guide.tex: mod_vcard_ldap replace NICK with NICKNAME (thanks + to Andreas Ntaflos) + * doc/guide.html: Likewise + * src/msgs/de.msg: Fix irc typo (thanks to Jonathan Schleifer) * src/msgs/cs.msg: Likewise * src/msgs/pl.msg: Likewise diff --git a/doc/guide.html b/doc/guide.html index 2a7a11661..b4a95b536 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -2662,7 +2662,7 @@ attributes. The pattern variables "%s" will be sequentially replaced with the values of LDAP attributes from List_of_LDAP_attributes, "%u" will be replaced with the user part of a JID, and "%d" will be replaced with the domain part of a JID. The default is: -
  [{"NICK", "%u", []},
+
  [{"NICKNAME", "%u", []},
    {"FN", "%s", ["displayName"]},
    {"LAST", "%s", ["sn"]},
    {"FIRST", "%s", ["givenName"]},
@@ -2711,7 +2711,7 @@ is:
    {"Given Name", "FIRST"},
    {"Middle Name", "MIDDLE"},
    {"Family Name", "LAST"},
-   {"Nickname", "NICK"},
+   {"Nickname", "NICKNAME"},
    {"Birthday", "BDAY"},
    {"Country", "CTRY"},
    {"City", "LOCALITY"},
@@ -2752,7 +2752,7 @@ Also we want users to search each other. Let’s see how we can set it up:<
       {ldap_filter, ""},
       %% Now we want to define vCard pattern
       {ldap_vcard_map,
-       [{"NICK", "%u", []}, % just use user's part of JID as his nickname
+       [{"NICKNAME", "%u", []}, % just use user's part of JID as his nickname
         {"FIRST", "%s", ["givenName"]},
         {"LAST", "%s", ["sn"]},
         {"FN", "%s, %s", ["sn", "givenName"]}, % example: "Smith, John"
@@ -2769,7 +2769,7 @@ Also we want users to search each other. Let’s see how we can set it up:<
       %% Note that JID is always returned with search results
       {ldap_search_reported,
        [{"Full Name", "FN"},
-        {"Nickname", "NICK"},
+        {"Nickname", "NICKNAME"},
         {"Birthday", "BDAY"}]}
     ]}
     ...
@@ -2777,7 +2777,7 @@ Also we want users to search each other. Let’s see how we can set it up:<
 

Note that mod_vcard_ldap module checks an existence of the user before searching his info in LDAP.

  • ldap_vcard_map example:
      {ldap_vcard_map,
    -   [{"NICK", "%u", []},
    +   [{"NICKNAME", "%u", []},
         {"FN", "%s", ["displayName"]},
         {"CTRY", "Russia", []},
         {"EMAIL", "%u@%d", []},
    @@ -2794,7 +2794,7 @@ searching his info in LDAP.

  • ldap_vcard_map
  • 3.3.25  mod_version

    diff --git a/doc/guide.tex b/doc/guide.tex index eb6f8a660..3802767de 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -3213,7 +3213,7 @@ consists of the following \modvcardldap{}-specific options: \term{"\%u"} will be replaced with the user part of a JID, and \term{"\%d"} will be replaced with the domain part of a JID. The default is: \begin{verbatim} - [{"NICK", "%u", []}, + [{"NICKNAME", "%u", []}, {"FN", "%s", ["displayName"]}, {"LAST", "%s", ["sn"]}, {"FIRST", "%s", ["givenName"]}, @@ -3266,7 +3266,7 @@ consists of the following \modvcardldap{}-specific options: {"Given Name", "FIRST"}, {"Middle Name", "MIDDLE"}, {"Family Name", "LAST"}, - {"Nickname", "NICK"}, + {"Nickname", "NICKNAME"}, {"Birthday", "BDAY"}, {"Country", "CTRY"}, {"City", "LOCALITY"}, @@ -3321,7 +3321,7 @@ Also we want users to search each other. Let's see how we can set it up: {ldap_filter, ""}, %% Now we want to define vCard pattern {ldap_vcard_map, - [{"NICK", "%u", []}, % just use user's part of JID as his nickname + [{"NICKNAME", "%u", []}, % just use user's part of JID as his nickname {"FIRST", "%s", ["givenName"]}, {"LAST", "%s", ["sn"]}, {"FN", "%s, %s", ["sn", "givenName"]}, % example: "Smith, John" @@ -3338,7 +3338,7 @@ Also we want users to search each other. Let's see how we can set it up: %% Note that JID is always returned with search results {ldap_search_reported, [{"Full Name", "FN"}, - {"Nickname", "NICK"}, + {"Nickname", "NICKNAME"}, {"Birthday", "BDAY"}]} ]} ... @@ -3351,7 +3351,7 @@ searching his info in LDAP. \item \term{ldap\_vcard\_map} example: \begin{verbatim} {ldap_vcard_map, - [{"NICK", "%u", []}, + [{"NICKNAME", "%u", []}, {"FN", "%s", ["displayName"]}, {"CTRY", "Russia", []}, {"EMAIL", "%u@%d", []}, @@ -3372,7 +3372,7 @@ searching his info in LDAP. [{"Full Name", "FN"}, {"Email", "EMAIL"}, {"Birthday", "BDAY"}, - {"Nickname", "NICK"} + {"Nickname", "NICKNAME"} ]}, \end{verbatim} \end{itemize}