Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

LDAP recursive operations

2013-02-20
2013-02-20
  • sparrowlegs
    sparrowlegs
    2013-02-20

    Hi there,

    I am running an LDAP server on Ubuntu 10.04:

    @(#) $OpenLDAP: slapd 2.4.21 (Dec 19 2011 15:18:58) $
    buildd@roseapple:/build/buildd/openldap-2.4.21/debian/build/servers/slapd

    I would like to attempt a recursive operation to make some batch changes to the directory:

    1. Add an email entry for all users, some older accounts already have this.

    2. Remove sambaPwdMustChange and sambaPwdCanChange attribs from all ou=User accounts.

    I have never attempted any recursive operations with LDAP Admin before and wondered if anyone could point me in the right direction? I guess I need to use a template?

    Many thanks,
    c:)

     
  • Hi,

    You don't need to use templates. The batch operations are actually quite simple and straightforward. Choose Edit->Modify set... Here, you can define operations (add, replace delete) and LDAP query to match the entries for chosen operations. You can read more about batch operations here: http://www.ldapadmin.org/docs/batch.html

    Cheers,
    Tihomir

     
    Last edit: Tihomir Karlovic 2013-02-20
  • P.S.

    For instance, to add E-Mails to all users choose:

    Opeartion: Add, Attribute: email, Value: %sn%@mail.com (you can use parameters to form e-mail adress)

    To remove sambaPwdMustChange from ou=Users path only use

    Operation: delete, Attribute: sambaPwdCanChange, Value: *
    Operation: delete, Attribute: sambaPwdMustChange, Value: *

    and set path to ou=Users.

     
    • sparrowlegs
      sparrowlegs
      2013-02-20

      Wow - did't realise it would be that simple.

      Many thanks! Congrats on a great product by the way.

      c:)

       


Anonymous


Cancel   Add attachments