Hi

I am looking at altering Lothar's excellent Password Notification
Driver (Thanks!) found here 'brummelhook.com'
(http://www.brummelhook.com/dirxml.html) but I am having trouble
understanding some of the xml (my xml knowledge being pretty poor).

In the policy #2 Check Accounts there are Rules to build the
notification lists. I am basing any new rules I introduce on the
currently defined rules. Below is an example of one such rule (Hope this
reads ok)

<rule>
<description>build password notification list 1</description>
<comment xml:space=\"preserve\">find all accounts with passwords
that expire within the first notification interval and append them to
the \"notification1\" subnode.</comment>
<comment name=\"author\" xml:space=\"preserve\">lothar
haeger</comment>
<conditions/>
<actions>
<do-append-xml-element expression=\".\"
name=\"notification1\"/>
<do-append-xml-element expression=\"notification1\"
name=\"from\"/>
<do-append-xml-text expression=\"notification1/from\">
<arg-string>
<token-convert-time dest-format=\"~debugdatetimeformat~\"
src-format=\"!ctime\">
<token-local-variable name=\"notify1from\"/>
</token-convert-time>
</arg-string>
</do-append-xml-text>
<do-append-xml-element expression=\"notification1\"
name=\"to..\"/>
<do-append-xml-text expression=\"notification1/to..\">
<arg-string>
<token-convert-time dest-format=\"~debugdatetimeformat~\"
src-format=\"!ctime\">
<token-local-variable name=\"notify1to\"/>
</token-convert-time>
</arg-string>
</do-append-xml-text>
<do-set-local-variable name=\"filter\" scope=\"policy\">
<arg-string>
<token-text xml:space=\"preserve\">(&amp;</token-text>
<token-text
xml:space=\"preserve\">(passwordexpirationtime>=</token-text>
<token-convert-time dest-format=\"yyyymmddhhmmss'z'\"
dest-tz=\"utc\" src-format=\"!ctime\">
<token-local-variable name=\"notify1from\"/>
</token-convert-time>
<token-text xml:space=\"preserve\">)</token-text>
<token-text
xml:space=\"preserve\">(passwordexpirationtime&lt; =</token-text>
<token-convert-time dest-format=\"yyyymmddhhmmss'z'\"
dest-tz=\"utc\" src-format=\"!ctime\">
<token-local-variable name=\"notify1to\"/>
</token-convert-time>
<token-text xml:space=\"preserve\">)</token-text>
<token-global-variable name=\"userldapfilter\"/>
<token-text xml:space=\"preserve\">)</token-text>
</arg-string>
</do-set-local-variable>
<do-clone-xpath dest-expression=\"notification1\"
src-expression=\"es:ldapsearch($ldapconnect, $ldapport, $ldapusetls,
$ldaptlskeystore, $ldaptlsstorepass, $ldaplogin, $ldappassword,
'~userldapsearchbase~', '~userldapsearchscope~', $filter, $pw-attrlist,
~ldapmaxresultset~)\"/>
</actions>
</rule>

In the above code there are several <do-append-xml-element expressions
which appear to store the from and to times for which the driver is
working within for that rule and these are pulled from the local
variables calculated earlier. e.g.


<do-append-xml-element expression=\".\"
name=\"notification1\"/>
<do-append-xml-element expression=\"notification1\"
name=\"from\"/>
<do-append-xml-text expression=\"notification1/from\">
<arg-string>
<token-convert-time dest-format=\"~debugdatetimeformat~\"
src-format=\"!ctime\">
<token-local-variable name=\"notify1from\"/>
</token-convert-time>
</arg-string>


My question is why are these times being stored in the element? The
ldap filter which obtains the list of users uses the local variables and
I cannot find anywhere else within the driver where these values are
referenced.

Could someone tell me if I am missing something (Very very possible!)?

Thanks for your time.

J


--
leedsisd
------------------------------------------------------------------------
leedsisd's Profile: http://forums.novell.com/member.php?userid=5005
View this thread: http://forums.novell.com/showthread.php?t=414663