Discussion:
[Jxplorer-users] Create a new entry via HTML template
i***@vsign.de
2014-02-11 09:24:50 UTC
Permalink
Hi there,

I'm looking for an option to add a new entry via a link or a formula on a
HTML template.

In my particularly case its about a new contact entry. Beside the RDN, I
need to define instanceType, nTSecurityDescriptor, objectCategory and
objectClass in order to create a new entry. But that seam to be only
possible via the table editor, which is not really convenient option for
normal users.

My idea was to predefine these entry already in a HTML form/template, but
didn't work out... I tried that with the following code:

<form name="Person">
<input type="hidden" name="instanceType" value="4"/>
<input type="hidden" name="nTSecurityDescriptor" value=""/>
<input type="hidden" name="objectCategory"
value="CN=Person,CN=Schema,CN=Configuration,DC=gall,DC=lan"/>
<input type="hidden" name="objectClass" value="contact"/>
<input type="hidden" name="objectClass" value="organizationalPerson"/>
<input type="hidden" name="objectClass" value="person"/>
<input type="hidden" name="objectClass" value="top"/>
<input type="submit" name="Submit" value="Speichern"/>
<input type="reset"/>
</form>

I have the feeling, the form doesn't define the right OU, where the entry
Unable to perform Modify operation.
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 -
00002014: objectclass: cannot delete all structural objectclasses!];
remaining name 'ou=Contacts,dc=local,dc=lan'

As I understand that, jxplorer tries to overwrite the organizational unit
(OU). So somehow does the HTML form not address a new entry.

Any help/ideas how to realize my approach?

Regards

Valentin
Chris Betts
2014-02-11 12:35:40 UTC
Permalink
HI Valentin,

I think the problem is that the html template mechanisms usually only
modify an existing entry.

... I'm having a poke around that code for another reason, so I might
refresh my memory on whether it's possible to use the same mechanism to
'add' new entries; my feeling though is that it doesn't allow it at the
moment...

cheers,

- Chris

-----
*Dr Christopher Betts*
Australian Cloud Identity
http://cloudidentity.com.au
m: 0408 533 456
Post by i***@vsign.de
Hi there,
I'm looking for an option to add a new entry via a link or a formula on a
HTML template.
In my particularly case its about a new contact entry. Beside the RDN, I
need to define instanceType, nTSecurityDescriptor, objectCategory and
objectClass in order to create a new entry. But that seam to be only
possible via the table editor, which is not really convenient option for
normal users.
My idea was to predefine these entry already in a HTML form/template, but
<form name="Person">
<input type="hidden" name="instanceType" value="4"/>
<input type="hidden" name="nTSecurityDescriptor" value=""/>
<input type="hidden" name="objectCategory"
value="CN=Person,CN=Schema,CN=Configuration,DC=gall,DC=lan"/>
<input type="hidden" name="objectClass" value="contact"/>
<input type="hidden" name="objectClass"
value="organizationalPerson"/>
<input type="hidden" name="objectClass" value="person"/>
<input type="hidden" name="objectClass" value="top"/>
<input type="submit" name="Submit" value="Speichern"/>
<input type="reset"/>
</form>
I have the feeling, the form doesn't define the right OU, where the entry
Unable to perform Modify operation.
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 -
00002014: objectclass: cannot delete all structural objectclasses!];
remaining name 'ou=Contacts,dc=local,dc=lan'
As I understand that, jxplorer tries to overwrite the organizational unit
(OU). So somehow does the HTML form not address a new entry.
Any help/ideas how to realize my approach?
Regards
Valentin
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Jxplorer-users mailing list
https://lists.sourceforge.net/lists/listinfo/jxplorer-users
Valentin Wittich
2014-02-11 18:18:34 UTC
Permalink
Hi Chris,

Continue reading on narkive:
Loading...