adding fix for usrmgr.exe and local groups to the patches page
authorGerald Carter <jerry@samba.org>
Mon, 24 Jul 2006 12:00:03 +0000 (12:00 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 24 Jul 2006 12:00:03 +0000 (12:00 +0000)
git-svn-id: file:///home/svn/samba-web/trunk@1017 44aeb9d7-1cd8-0310-b257-a505e0beeac2

patches/index.html
patches/patch-3.0.23a-samr_alias.patch [new file with mode: 0644]
patches/series
patches/series-3.0.23a [moved from patches/series-3.0.21c with 100% similarity]

index f0b8c350e1d1baab17779f42cbea798d24e8a04e..88f8777d0e0a7e032b864fc0917356f7ac5fa7da 100755 (executable)
@@ -35,25 +35,25 @@ $ cd source
    source/ directory.  In all cases, it is best to do a clean build 
    after applying any patches.</p>
 
-<p>No patches available at the moment.</p>
-
 <!-- Each release gets its own table. -->
-<!--
+
 <table class="real">
   <thead>
-    <tr><th colspan="2"><b>Samba 3.0.21c</b></th></tr>
+    <tr><th colspan="2"><b>Samba 3.0.23a</b></th></tr>
   </thead>
   <tbody>
   <tr>
     <td><em>Patch</em></td><td><em>Description</em></td>
   </tr>
   <tr>
-    <td><a href="/samba/patches/<filename>">BUG ID</a></td>
-    <td>Fix for ...</td>
+    <td><a href="/samba/patches/patch-3.0.23a-samr_alias.patch">LocalGroups</a></td>
+    <td>User Manage for Domains is unable to view or modify the membership of Local
+        groups such as Administrators on a Samba DC configured to use &quot;passdb 
+        backend = ldapsam&quot;</td>
   </tr>
   </tbody>
 </table>
--->
+
 
 <p>&nbsp;</p>
 
diff --git a/patches/patch-3.0.23a-samr_alias.patch b/patches/patch-3.0.23a-samr_alias.patch
new file mode 100644 (file)
index 0000000..609cbd1
--- /dev/null
@@ -0,0 +1,26 @@
+diff -urN --exclude-from=/home/drizzt/jerry/tmp/diff.excludes samba-3.0.23a/source/rpc_server/srv_samr_nt.c samba-3.0.23a-patched/source/rpc_server/srv_samr_nt.c
+--- samba-3.0.23a/source/rpc_server/srv_samr_nt.c      2006-07-21 11:22:56.000000000 -0500
++++ samba-3.0.23a-patched/source/rpc_server/srv_samr_nt.c      2006-07-24 06:50:15.000000000 -0500
+@@ -3758,7 +3758,9 @@
+       DEBUG(10, ("sid is %s\n", sid_string_static(&alias_sid)));
++      become_root();
+       status = pdb_enum_aliasmem(&alias_sid, &sids, &num_sids);
++      unbecome_root();
+       if (!NT_STATUS_IS_OK(status)) {
+               return status;
+@@ -4589,7 +4591,11 @@
+       /* get the current group information */
+-      if ( !pdb_get_aliasinfo( &group_sid, &info ) ) {
++      become_root();
++      ret = pdb_get_aliasinfo( &group_sid, &info );
++      unbecome_root();
++
++      if ( !ret ) {
+               return NT_STATUS_NO_SUCH_ALIAS;
+       }
index 54937b50ddd0b54f1dfe9e918df12ecc6c62c317..7d2d8abe09223fdbcf2af797e7b6f8d91e5eed65 120000 (symlink)
@@ -1 +1 @@
-series-3.0.21c
\ No newline at end of file
+series-3.0.23a
\ No newline at end of file