Menu

#19 ldapmodify in templates

v1.0_(example)
open
nobody
ldapmodify (1)
4
2018-02-01
2017-07-23
Anonymous
No

Hi,

I'm trying to create a template who sends the ldapadd and ldapmodify commands. The use case is for the mac authentication bypass functionality. The administrator right clicks on a ldap group and add's the mac template. I can find how to implement to ldapmodify requests to the template. Basically the same as when we use the add user template, firts it send the ldapadd command and afterwards the ldap modify command to link the user to the group. Can you guide me to the documentation/example?

Regards,

Xanti

Discussion

  • Tihomir Karlovic

    Hello Xanti,

    very sorry for a delay but I somehow missed your request (I was on a vacation at that time). Yes, there is a possibility using javascript engine in templates, please let me know if you still need this solution.

    Best ergards,
    Tihomir

     
  • Anonymous

    Anonymous - 2017-10-05

    Hi Tihomir,

    Thanks for the reply.
    A example of a template to do so would be much appriciated.

    Regards,

    Xanti

     
  • Tihomir Karlovic

    Hi Xanti,

    did you chack the documentation page: http://ldapadmin.org/docs/scripts.html ? You can use Session.Search to get the list of entries that you want to modify. The loop through the list and access attributes with attributesByName['attributeName'] to access attribute and its values.

    Best regards,
    Tihomir

     

Anonymous
Anonymous

Add attachments
Cancel