In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created templates/posixAccount/Main.html and
other.html
The attached patch is against the cvs to allow the HTML viewer to create new
entries.
The line in MyHTMLEditorKit.java:
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use
ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
--
Douglas E. Engert <[EMAIL PROTECTED]>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
retrieving revision 1.22
diff -u -r1.22 HTMLTemplateDisplay.java
--- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 18 Aug 2005 04:14:25 -0000 1.22
+++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 15 Aug 2007 14:50:34 -0000
@@ -2517,7 +2517,7 @@
public boolean canCreateEntry()
{
- return false;
+ return true; //DEE was false;
}
public void registerComponents(JMenuBar menu, JToolBar buttons, JTree tree, JPopupMenu treeMenu, JFrame jx)
@@ -2559,4 +2559,4 @@
}
-}
\ No newline at end of file
+}
Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
retrieving revision 1.8
diff -u -r1.8 MyHTMLEditorKit.java
--- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 6 Dec 2005 06:27:40 -0000 1.8
+++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 15 Aug 2007 14:50:34 -0000
@@ -62,6 +62,8 @@
DXEntry newEntry = parseData(data, oldEntry); //TE: make an entry with any changes that the user may have done (this entry doesn't have a dn yet).
+ newEntry.setStatus(oldEntry.getStatus()); // new or normal DEE
+
// Must remove the Submit attr so that it doesn't get added...
newEntry.remove(SUBMIT);
@@ -322,4 +324,4 @@
}
}
-}
\ No newline at end of file
+}
Title: organizationalUnit: Other Tab
![]()
posixAccount
|
description:: |
|
|
|
|
Title: posixAccount: Main Tab
![]()
posixAccount
cn: and uid: are normally the same.
password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
|
cn: |
|
uid: |
|
uidNumber: |
|
User Password: |
|
gidnumber: |
|
gecos: |
|
loginShell: |
|
homeDirectory: |
|
|
|
|
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jxplorer-users mailing list
Jxplorer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-users