Hi monks,

This is probably quite an obscure question. =/

I think I've mastered the art of retrieving information from microsofts active directory using the perl Net::LDAP module.

However I'm finding I need to retrieve the last update time of the email field within active directory. I am able to do this by using the ldp.exe tool provided by microsoft or using `repadmin /showmeta <dn of user object> <domain controller>` in order to retrieve the AD's 'replication metadata'. (in that each AD field has a timestamp so that replication conflicts don't occur and so the most recent update to a field overrides all previous updates. )

I would like to pull this data ideally using the Net::LDAP module or if that's not possible through some other perl method that doesn't rely on calling slow third party tools (like repadmin). Ideally I'd like to be able to use perl to run an ldap query to retrieve all users whose email field was updated within the last 24 hours but I fear the ldap queries interface might not allow me to query replication metadata.

Have any knowledgeable monks done anything similar before and could provide some pointers.

Thanks.


In reply to Viewing Active Directory Replication Metadata! by disciple01

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.