Author: tmortagne
Date: 2008-02-20 12:17:11 +0100 (Wed, 20 Feb 2008)
New Revision: 7867
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
Log:
XWIKI-2133: Add "ldap_dn" field to XWikiUsers class
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2008-02-20 10:23:12 UTC (rev 7866)
+++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2008-02-20 11:17:11 UTC (rev 7867)
@@ -2406,6 +2406,9 @@
bclass.addStaticListField("pageWidth", "Preferred page width",
"default|640|800|1024|1280|1600");
needsUpdate |= bclass.addTextField("avatar", "Avatar", 30);
+
+ // Only used by LDAP authentication service
+ needsUpdate |= bclass.addTextField("ldap_dn", "LDAP DN", 80);
String content = doc.getContent();
if ((content == null) || (content.equals(""))) {
@@ -2537,7 +2540,8 @@
needsUpdate |=
bclass.addTextField("documentBundles", "Internationalization
Document Bundles", 60);
- // LDAP
+ // Only used by LDAP authentication service
+
needsUpdate |= bclass.addBooleanField("ldap", "Ldap", "yesno");
needsUpdate |= bclass.addTextField("ldap_server", "Ldap server
adress", 60);
needsUpdate |= bclass.addNumberField("ldap_port", "Ldap server port",
5, "int");
@@ -2558,6 +2562,8 @@
"always|create");
needsUpdate |= bclass.addBooleanField("ldap_trylocal", "Try local
login", "yesno");
+ /////
+
if (((BooleanClass)
bclass.get("showLeftPanels")).getDisplayType().equals("checkbox")) {
((BooleanClass)
bclass.get("showLeftPanels")).setDisplayType("yesno");
((BooleanClass)
bclass.get("showRightPanels")).setDisplayType("yesno");
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications