<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[13019] CalendarServer/branches/users/sagen/move2who-4/txdav/who/test/test_delegates.py</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.calendarserver.org//changeset/13019">13019</a></dd>
<dt>Author</dt> <dd>sagen@apple.com</dd>
<dt>Date</dt> <dd>2014-03-27 20:33:30 -0700 (Thu, 27 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix test_delegates.py</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#CalendarServerbranchesuserssagenmove2who4txdavwhotesttest_delegatespy">CalendarServer/branches/users/sagen/move2who-4/txdav/who/test/test_delegates.py</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalendarServerbranchesuserssagenmove2who4txdavwhotesttest_delegatespy"></a>
<div class="modfile"><h4>Modified: CalendarServer/branches/users/sagen/move2who-4/txdav/who/test/test_delegates.py (13018 => 13019)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/branches/users/sagen/move2who-4/txdav/who/test/test_delegates.py        2014-03-28 03:22:54 UTC (rev 13018)
+++ CalendarServer/branches/users/sagen/move2who-4/txdav/who/test/test_delegates.py        2014-03-28 03:33:30 UTC (rev 13019)
</span><span class="lines">@@ -20,11 +20,10 @@
</span><span class="cx"> 
</span><span class="cx"> from txdav.who.delegates import (
</span><span class="cx">     addDelegate, removeDelegate, delegatesOf, delegatedTo,
</span><del>-    DirectoryService, RecordType as DelegateRecordType
</del><ins>+    RecordType as DelegateRecordType
</ins><span class="cx"> )
</span><span class="cx"> from txdav.who.groups import GroupCacher
</span><span class="cx"> from twext.who.idirectory import RecordType
</span><del>-from twext.who.test.test_xml import xmlService
</del><span class="cx"> from twisted.internet.defer import inlineCallbacks
</span><span class="cx"> from twistedcaldav.test.util import StoreTestCase
</span><span class="cx"> 
</span><span class="lines">@@ -35,69 +34,63 @@
</span><span class="cx">     def setUp(self):
</span><span class="cx">         yield super(DelegationTest, self).setUp()
</span><span class="cx">         self.store = self.storeUnderTest()
</span><del>-        self.xmlService = xmlService(self.mktemp(), xmlData=testXMLConfig)
-        self.groupCacher = GroupCacher(self.xmlService)
-        self.delegateService = DirectoryService(
-            self.xmlService.realmName,
-            self.store
-        )
-        self.delegateService.setMasterDirectory(self.xmlService)
</del><ins>+        self.groupCacher = GroupCacher(self.directory)
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx">     @inlineCallbacks
</span><span class="cx">     def test_directDelegation(self):
</span><span class="cx">         txn = self.store.newTransaction()
</span><span class="cx"> 
</span><del>-        delegator = yield self.xmlService.recordWithUID(u&quot;__wsanchez__&quot;)
-        delegate1 = yield self.xmlService.recordWithUID(u&quot;__sagen__&quot;)
-        delegate2 = yield self.xmlService.recordWithUID(u&quot;__cdaboo__&quot;)
</del><ins>+        delegator = yield self.directory.recordWithUID(u&quot;__wsanchez1__&quot;)
+        delegate1 = yield self.directory.recordWithUID(u&quot;__sagen1__&quot;)
+        delegate2 = yield self.directory.recordWithUID(u&quot;__cdaboo1__&quot;)
</ins><span class="cx"> 
</span><span class="cx">         # Add 1 delegate
</span><span class="cx">         yield addDelegate(txn, delegator, delegate1, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True))
</span><del>-        self.assertEquals([&quot;__sagen__&quot;], [d.uid for d in delegates])
</del><ins>+        self.assertEquals([u&quot;__sagen1__&quot;], [d.uid for d in delegates])
</ins><span class="cx">         delegators = (yield delegatedTo(txn, delegate1, True))
</span><del>-        self.assertEquals([&quot;__wsanchez__&quot;], [d.uid for d in delegators])
</del><ins>+        self.assertEquals([u&quot;__wsanchez1__&quot;], [d.uid for d in delegators])
</ins><span class="cx"> 
</span><span class="cx">         yield txn.commit()  # So delegateService will see the changes
</span><span class="cx">         txn = self.store.newTransaction()
</span><span class="cx"> 
</span><span class="cx">         # The &quot;proxy-write&quot; pseudoGroup will have one member
</span><del>-        pseudoGroup = yield self.delegateService.recordWithShortName(
</del><ins>+        pseudoGroup = yield self.directory.recordWithShortName(
</ins><span class="cx">             DelegateRecordType.writeDelegateGroup,
</span><del>-            u&quot;__wsanchez__&quot;
</del><ins>+            u&quot;__wsanchez1__&quot;
</ins><span class="cx">         )
</span><del>-        self.assertEquals(pseudoGroup.uid, u&quot;__wsanchez__#calendar-proxy-write&quot;)
</del><ins>+        self.assertEquals(pseudoGroup.uid, u&quot;__wsanchez1__#calendar-proxy-write&quot;)
</ins><span class="cx">         self.assertEquals(
</span><span class="cx">             [r.uid for r in (yield pseudoGroup.members())],
</span><del>-            [u&quot;__sagen__&quot;]
</del><ins>+            [u&quot;__sagen1__&quot;]
</ins><span class="cx">         )
</span><span class="cx">         # The &quot;proxy-read&quot; pseudoGroup will have no members
</span><del>-        pseudoGroup = yield self.delegateService.recordWithShortName(
</del><ins>+        pseudoGroup = yield self.directory.recordWithShortName(
</ins><span class="cx">             DelegateRecordType.readDelegateGroup,
</span><del>-            u&quot;__wsanchez__&quot;
</del><ins>+            u&quot;__wsanchez1__&quot;
</ins><span class="cx">         )
</span><del>-        self.assertEquals(pseudoGroup.uid, u&quot;__wsanchez__#calendar-proxy-read&quot;)
</del><ins>+        self.assertEquals(pseudoGroup.uid, u&quot;__wsanchez1__#calendar-proxy-read&quot;)
</ins><span class="cx">         self.assertEquals(
</span><span class="cx">             [r.uid for r in (yield pseudoGroup.members())],
</span><span class="cx">             []
</span><span class="cx">         )
</span><span class="cx">         # The &quot;proxy-write-for&quot; pseudoGroup will have one member
</span><del>-        pseudoGroup = yield self.delegateService.recordWithShortName(
</del><ins>+        pseudoGroup = yield self.directory.recordWithShortName(
</ins><span class="cx">             DelegateRecordType.writeDelegatorGroup,
</span><del>-            u&quot;__sagen__&quot;
</del><ins>+            u&quot;__sagen1__&quot;
</ins><span class="cx">         )
</span><del>-        self.assertEquals(pseudoGroup.uid, u&quot;__sagen__#calendar-proxy-write-for&quot;)
</del><ins>+        self.assertEquals(pseudoGroup.uid, u&quot;__sagen1__#calendar-proxy-write-for&quot;)
</ins><span class="cx">         self.assertEquals(
</span><span class="cx">             [r.uid for r in (yield pseudoGroup.members())],
</span><del>-            [u&quot;__wsanchez__&quot;]
</del><ins>+            [u&quot;__wsanchez1__&quot;]
</ins><span class="cx">         )
</span><span class="cx">         # The &quot;proxy-read-for&quot; pseudoGroup will have no members
</span><del>-        pseudoGroup = yield self.delegateService.recordWithShortName(
</del><ins>+        pseudoGroup = yield self.directory.recordWithShortName(
</ins><span class="cx">             DelegateRecordType.readDelegatorGroup,
</span><del>-            u&quot;__sagen__&quot;
</del><ins>+            u&quot;__sagen1__&quot;
</ins><span class="cx">         )
</span><del>-        self.assertEquals(pseudoGroup.uid, u&quot;__sagen__#calendar-proxy-read-for&quot;)
</del><ins>+        self.assertEquals(pseudoGroup.uid, u&quot;__sagen1__#calendar-proxy-read-for&quot;)
</ins><span class="cx">         self.assertEquals(
</span><span class="cx">             [r.uid for r in (yield pseudoGroup.members())],
</span><span class="cx">             []
</span><span class="lines">@@ -107,16 +100,16 @@
</span><span class="cx">         yield addDelegate(txn, delegator, delegate2, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx">         delegators = (yield delegatedTo(txn, delegate2, True))
</span><del>-        self.assertEquals([&quot;__wsanchez__&quot;], [d.uid for d in delegators])
</del><ins>+        self.assertEquals([u&quot;__wsanchez1__&quot;], [d.uid for d in delegators])
</ins><span class="cx"> 
</span><span class="cx">         # Remove 1 delegate
</span><span class="cx">         yield removeDelegate(txn, delegator, delegate1, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True))
</span><del>-        self.assertEquals([&quot;__cdaboo__&quot;], [d.uid for d in delegates])
</del><ins>+        self.assertEquals([u&quot;__cdaboo1__&quot;], [d.uid for d in delegates])
</ins><span class="cx">         delegators = (yield delegatedTo(txn, delegate1, True))
</span><span class="cx">         self.assertEquals(0, len(delegators))
</span><span class="cx"> 
</span><span class="lines">@@ -130,9 +123,9 @@
</span><span class="cx">         yield txn.commit()  # So delegateService will see the changes
</span><span class="cx"> 
</span><span class="cx">         # Now set delegate assignments by using pseudoGroup.setMembers()
</span><del>-        pseudoGroup = yield self.delegateService.recordWithShortName(
</del><ins>+        pseudoGroup = yield self.directory.recordWithShortName(
</ins><span class="cx">             DelegateRecordType.writeDelegateGroup,
</span><del>-            u&quot;__wsanchez__&quot;
</del><ins>+            u&quot;__wsanchez1__&quot;
</ins><span class="cx">         )
</span><span class="cx">         yield pseudoGroup.setMembers([delegate1, delegate2])
</span><span class="cx"> 
</span><span class="lines">@@ -140,7 +133,7 @@
</span><span class="cx">         txn = self.store.newTransaction()
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx">         yield txn.commit()
</span><span class="lines">@@ -152,7 +145,7 @@
</span><span class="cx">         txn = self.store.newTransaction()
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__cdaboo__&quot;]),
</del><ins>+            set([u&quot;__cdaboo1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx">         yield txn.commit()
</span><span class="lines">@@ -162,10 +155,10 @@
</span><span class="cx">     def test_indirectDelegation(self):
</span><span class="cx">         txn = self.store.newTransaction()
</span><span class="cx"> 
</span><del>-        delegator = yield self.xmlService.recordWithUID(u&quot;__wsanchez__&quot;)
-        delegate1 = yield self.xmlService.recordWithUID(u&quot;__sagen__&quot;)
-        group1 = yield self.xmlService.recordWithUID(u&quot;__top_group_1__&quot;)
-        group2 = yield self.xmlService.recordWithUID(u&quot;__sub_group_1__&quot;)
</del><ins>+        delegator = yield self.directory.recordWithUID(u&quot;__wsanchez1__&quot;)
+        delegate1 = yield self.directory.recordWithUID(u&quot;__sagen1__&quot;)
+        group1 = yield self.directory.recordWithUID(u&quot;__top_group_1__&quot;)
+        group2 = yield self.directory.recordWithUID(u&quot;__sub_group_1__&quot;)
</ins><span class="cx"> 
</span><span class="cx">         # Add group delegate, but before the group membership has been
</span><span class="cx">         # pulled in
</span><span class="lines">@@ -186,11 +179,11 @@
</span><span class="cx">         yield self.groupCacher.refreshGroup(txn, group2.uid)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True, expanded=True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;, &quot;__glyph__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;, u&quot;__glyph1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx">         delegators = (yield delegatedTo(txn, delegate1, True))
</span><del>-        self.assertEquals([&quot;__wsanchez__&quot;], [d.uid for d in delegators])
</del><ins>+        self.assertEquals([u&quot;__wsanchez1__&quot;], [d.uid for d in delegators])
</ins><span class="cx"> 
</span><span class="cx">         # Verify we can ask for all delegated-to groups
</span><span class="cx">         yield addDelegate(txn, delegator, group2, True)
</span><span class="lines">@@ -203,15 +196,15 @@
</span><span class="cx">         yield addDelegate(txn, delegator, delegate1, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True, expanded=True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;, &quot;__glyph__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;, u&quot;__glyph1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx"> 
</span><span class="cx">         # Add a member to the group; they become a delegate
</span><span class="cx">         newSet = set()
</span><del>-        for name in (u&quot;wsanchez&quot;, u&quot;cdaboo&quot;, u&quot;sagen&quot;, u&quot;glyph&quot;, u&quot;dre&quot;):
</del><ins>+        for name in (u&quot;wsanchez1&quot;, u&quot;cdaboo1&quot;, u&quot;sagen1&quot;, u&quot;glyph1&quot;, u&quot;dre1&quot;):
</ins><span class="cx">             record = (
</span><del>-                yield self.xmlService.recordWithShortName(RecordType.user, name)
</del><ins>+                yield self.directory.recordWithShortName(RecordType.user, name)
</ins><span class="cx">             )
</span><span class="cx">             newSet.add(record.uid)
</span><span class="cx">         groupID, name, membershipHash = (yield txn.groupByUID(group1.uid))
</span><span class="lines">@@ -220,7 +213,7 @@
</span><span class="cx">         )
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True, expanded=True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;, &quot;__glyph__&quot;, &quot;__dre__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;, u&quot;__glyph1__&quot;, u&quot;__dre1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx"> 
</span><span class="lines">@@ -228,7 +221,7 @@
</span><span class="cx">         yield removeDelegate(txn, delegator, group1, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True, expanded=True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;, &quot;__cdaboo__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;, u&quot;__cdaboo1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx"> 
</span><span class="lines">@@ -236,89 +229,7 @@
</span><span class="cx">         yield removeDelegate(txn, delegator, group2, True)
</span><span class="cx">         delegates = (yield delegatesOf(txn, delegator, True, expanded=True))
</span><span class="cx">         self.assertEquals(
</span><del>-            set([&quot;__sagen__&quot;]),
</del><ins>+            set([u&quot;__sagen1__&quot;]),
</ins><span class="cx">             set([d.uid for d in delegates])
</span><span class="cx">         )
</span><span class="cx">         yield txn.commit()
</span><del>-
-
-
-
-
-testXMLConfig = &quot;&quot;&quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
-
-&lt;directory realm=&quot;xyzzy&quot;&gt;
-
-  &lt;record type=&quot;user&quot;&gt;
-    &lt;uid&gt;__wsanchez__&lt;/uid&gt;
-    &lt;guid&gt;3BDCB954-84D5-4F6D-8035-EAC19A6D6E1F&lt;/guid&gt;
-    &lt;short-name&gt;wsanchez&lt;/short-name&gt;
-    &lt;short-name&gt;wilfredo_sanchez&lt;/short-name&gt;
-    &lt;full-name&gt;Wilfredo Sanchez&lt;/full-name&gt;
-    &lt;password&gt;zehcnasw&lt;/password&gt;
-    &lt;email&gt;wsanchez@bitbucket.calendarserver.org&lt;/email&gt;
-    &lt;email&gt;wsanchez@devnull.twistedmatrix.com&lt;/email&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;user&quot;&gt;
-    &lt;uid&gt;__glyph__&lt;/uid&gt;
-    &lt;guid&gt;9064DF91-1DBC-4E07-9C2B-6839B0953876&lt;/guid&gt;
-    &lt;short-name&gt;glyph&lt;/short-name&gt;
-    &lt;full-name&gt;Glyph Lefkowitz&lt;/full-name&gt;
-    &lt;password&gt;hpylg&lt;/password&gt;
-    &lt;email&gt;glyph@bitbucket.calendarserver.org&lt;/email&gt;
-    &lt;email&gt;glyph@devnull.twistedmatrix.com&lt;/email&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;user&quot;&gt;
-    &lt;uid&gt;__sagen__&lt;/uid&gt;
-    &lt;guid&gt;4AD155CB-AE9B-475F-986C-E08A7537893E&lt;/guid&gt;
-    &lt;short-name&gt;sagen&lt;/short-name&gt;
-    &lt;full-name&gt;Morgen Sagen&lt;/full-name&gt;
-    &lt;password&gt;negas&lt;/password&gt;
-    &lt;email&gt;sagen@bitbucket.calendarserver.org&lt;/email&gt;
-    &lt;email&gt;shared@example.com&lt;/email&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;user&quot;&gt;
-    &lt;uid&gt;__cdaboo__&lt;/uid&gt;
-    &lt;guid&gt;7D45CB10-479E-456B-B54D-528958C5734B&lt;/guid&gt;
-    &lt;short-name&gt;cdaboo&lt;/short-name&gt;
-    &lt;full-name&gt;Cyrus Daboo&lt;/full-name&gt;
-    &lt;password&gt;suryc&lt;/password&gt;
-    &lt;email&gt;cdaboo@bitbucket.calendarserver.org&lt;/email&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;user&quot;&gt;
-    &lt;uid&gt;__dre__&lt;/uid&gt;
-    &lt;guid&gt;CFC88493-DBFF-42B9-ADC7-9B3DA0B0769B&lt;/guid&gt;
-    &lt;short-name&gt;dre&lt;/short-name&gt;
-    &lt;full-name&gt;Andre LaBranche&lt;/full-name&gt;
-    &lt;password&gt;erd&lt;/password&gt;
-    &lt;email&gt;dre@bitbucket.calendarserver.org&lt;/email&gt;
-    &lt;email&gt;shared@example.com&lt;/email&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;group&quot;&gt;
-    &lt;uid&gt;__top_group_1__&lt;/uid&gt;
-    &lt;guid&gt;49B350C6-9611-477B-94D9-5516B13856AB&lt;/guid&gt;
-    &lt;short-name&gt;top-group-1&lt;/short-name&gt;
-    &lt;full-name&gt;Top Group 1&lt;/full-name&gt;
-    &lt;email&gt;topgroup1@example.com&lt;/email&gt;
-    &lt;member-uid&gt;__wsanchez__&lt;/member-uid&gt;
-    &lt;member-uid&gt;__glyph__&lt;/member-uid&gt;
-    &lt;member-uid&gt;__sub_group_1__&lt;/member-uid&gt;
-  &lt;/record&gt;
-
-  &lt;record type=&quot;group&quot;&gt;
-    &lt;uid&gt;__sub_group_1__&lt;/uid&gt;
-    &lt;guid&gt;86144F73-345A-4097-82F1-B782672087C7&lt;/guid&gt;
-    &lt;short-name&gt;sub-group-1&lt;/short-name&gt;
-    &lt;full-name&gt;Sub Group 1&lt;/full-name&gt;
-    &lt;email&gt;subgroup1@example.com&lt;/email&gt;
-    &lt;member-uid&gt;__sagen__&lt;/member-uid&gt;
-    &lt;member-uid&gt;__cdaboo__&lt;/member-uid&gt;
-  &lt;/record&gt;
-
-&lt;/directory&gt;
-&quot;&quot;&quot;
</del></span></pre>
</div>
</div>

</body>
</html>