<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Rob:<br>
When possible (and when this feature is completed) please give me some
hints of what is this doing. I need follow it up and make necessary
changes to test plan and automation.<br>
<br>
Thanks<br>
<br>
Yi<br>
<br>
<br>
Rob Crittenden wrote:
<blockquote cite="mid:4A3A97B6.9010000@redhat.com" type="cite">Pavel
Zůna wrote:
  <br>
  <blockquote type="cite">Rob Crittenden wrote:
    <br>
    <blockquote type="cite">Pavel Zuna wrote:
      <br>
      <blockquote type="cite">Patch 0013: Add automount plugin port to
new LDAP backend.
        <br>
        <br>
Pavel
        <br>
      </blockquote>
      <br>
There are some problems with this port from the old mechanism.
      <br>
      <br>
I'm ok with renaming the functions I suppose, we'll have to see through
usage which one is better.
      <br>
    </blockquote>
Renaming was necessary, because Method to Object association is created
according to plugin names. If we want an -add method for the
automountkey object, its name has to start with 'automountkey'.
    <br>
    <br>
    <blockquote type="cite">But it doesn't seem to actually be working.
automount2-tofiles doesn't work at all and automount2-create-indirect
doesn't create the maps properly.
      <br>
    </blockquote>
Yeah, looks like I didn't understand correctly how automount entries
are organized in LDAP.
    <br>
    <br>
    <blockquote type="cite">I was originally a little worried that when
deleting a map you were removing the connection to the parent in the
pre callback but it looks like the keys aren't being removed either. I
think the parent connection should be removed after the entry is
removed.
      <br>
      <br>
Can you take another look?
      <br>
      <br>
rob
      <br>
    </blockquote>
I did an updated version. I also renamed the -create methods to -add,
but forgot about -delete before making the commit. I will rename those
later, the plugin name had to stay suffixed with 2 for now anyway.
    <br>
    <br>
Pavel
    <br>
    <br>
  </blockquote>
  <br>
Ok, better but not quite there yet. There is a typo in a variable name:
  <br>
  <br>
--- a/ipalib/plugins/automount2.py
  <br>
+++ b/ipalib/plugins/automount2.py
  <br>
@@ -302,7 +302,7 @@ class automount2_tofiles(Command):
  <br>
                     automountmapname=info
  <br>
                 )
  <br>
                 if keys_tmp:
  <br>
-                    keys[info] += keys_tmps
  <br>
+                    keys[info] += keys_tmp
  <br>
  <br>
         return (maps, keys)
  <br>
  <br>
I can add an indirect map now and show maps the way they would look in
files but it seems to show the maps multiple times, at least
auto.master:
  <br>
  <br>
$ ./ipa automount2-tofiles
  <br>
/etc/auto.master:
  <br>
/-      /etc/auto.direct
  <br>
/stuf   /etc/auto.master
  <br>
/things /etc/auto.things
  <br>
---------------------------
  <br>
/etc/auto.direct:
  <br>
---------------------------
  <br>
/etc/auto.master:
  <br>
/-      auto.direct
  <br>
/stuf   auto.master
  <br>
/things auto.things
  <br>
---------------------------
  <br>
/etc/auto.things:
  <br>
/somewhere      rw
  <br>
  <br>
Also, automuntkey2-delete seems broken. I ran it and let it hang for a
couple of minutes, not seeming to do anything. The DS logs have a lot
of repeated searches:
  <br>
  <br>
[18/Jun/2009:15:38:09 -0400] conn=951 op=180016 SRCH
base="automountkey=/place2,automountmapname=auto.stuff,cn=automount,dc=example,dc=com"
scope=1 filter="(objectClass=*)" attrs=""
  <br>
[18/Jun/2009:15:38:09 -0400] conn=951 op=180016 RESULT err=0 tag=101
nentries=0 etime=0 notes=U
  <br>
[18/Jun/2009:15:38:09 -0400] conn=951 op=180017 SRCH
base="automountkey=/place2,automountmapname=auto.stuff,cn=automount,dc=example,dc=com"
scope=1 filter="(objectClass=*)" attrs=""
  <br>
[18/Jun/2009:15:38:09 -0400] conn=951 op=180017 RESULT err=0 tag=101
nentries=0 etime=0 notes=U
  <br>
[18/Jun/2009:15:38:09 -0400] conn=951 op=180018 SRCH
base="automountkey=/place2,automountmapname=auto.stuff,cn=automount,dc=example,dc=com"
scope=1 filter="(objectClass=*)" attrs=""
  <br>
  <br>
rob
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Freeipa-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-devel">https://www.redhat.com/mailman/listinfo/freeipa-devel</a></pre>
</blockquote>
<br>
</body>
</html>