[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2709-g45cd780

Günther Deschner gd at samba.org
Mon Jun 2 23:43:39 GMT 2008


The branch, v3-3-test has been updated
       via  45cd78030f18a792d0761160bb96116d19801109 (commit)
       via  d8fad6bf442ac6f218c1c4572da9f1e9932c9cee (commit)
       via  890d63f31c0ff3931b8efb627c3a375850a59a9a (commit)
       via  d1bf8c5ae6f4e3ade2000dd884c8384fb4b9f12c (commit)
       via  f15a7f9ab1da88369185beda267f3e67a3b36191 (commit)
       via  3d037a07e015a3af75dde054cef4c0bb7795fbb5 (commit)
       via  cb20271012e7713a28c302e199b676bdb821e5e4 (commit)
       via  f991b4d58ed660e648f29c3f25195072f91643ba (commit)
       via  abd3f701340a31d9c3779cfe37c639f9105dfdb3 (commit)
       via  325f419636a69c40ee25c068787866384ef52279 (commit)
       via  68cad7322fe7a6bad7c9378f0d610a3b713b4b18 (commit)
       via  0e02b40ae8a63a299f221dce82725b9151a7e499 (commit)
       via  d735ee79fa5b9b7ec409ea387e4ff10357e417e7 (commit)
       via  591003b109d936b62cc80827971c201b3ea79e39 (commit)
       via  4d40d8b51a5323c36ff78ccfc4d7405ac97dde6b (commit)
       via  f70e37a7fe1915f557e194237a8bb26bcf9635d7 (commit)
       via  39e3a29cb9a57d5f79e503f7d4873b5c8a844976 (commit)
       via  c817c0c5bcf2578aa7f26403c0ce567281e4b019 (commit)
       via  6ebd618cc768df142b035362cc648d8bc2c1bc89 (commit)
       via  efd4a899f5d139b5e3e22660f5fb1c12f59525fc (commit)
       via  d2426f53fabaf75d130fb99216b71299f4371253 (commit)
       via  4234c87c6c30434bc5bcfcc003fdaa0114e9d74a (commit)
       via  929ecc693a44fbadadcbb9000220bce9dfa6904d (commit)
       via  b4fafdeebf43a8bd65d5c99432de373594f36180 (commit)
       via  ce60450d831ee2f4ab18c3ce09decee548ec4543 (commit)
       via  05ded246426415b61597d003ffac519847c08620 (commit)
       via  f68f75a6e4b4ba8b38cac7578c65dc7361315b28 (commit)
       via  528544d4ce8fa27940a2f5e3c989cf37ef888f94 (commit)
       via  8d865b9a53da70d613425a8dc2ee1b0ca12843ac (commit)
       via  fa86b2cf5c6f5654fc7545de467c47626573f97c (commit)
       via  b07445e86f43d6e9e45b7c502ab7998bca4db14f (commit)
       via  a99906f661faa104da4b40707597ceb4542548f8 (commit)
       via  1a8df720306662c2109654c8666cd33dcb769ec4 (commit)
       via  10f69b3ce58be06d95e4dfd5782d9481f4af76bf (commit)
       via  7ebe949643a53f636a942171147f0be5e32b4a37 (commit)
       via  c727a49519b2da6c5eb9ccc5025ab844fe8330ad (commit)
       via  973de861c98c62ba31ceb63b3434dc201ae8bf06 (commit)
       via  6eba84edc60829f0cdf3508520625e66fe88afde (commit)
       via  b18ef7ce05a3ea009c7779b498921bdd1e6ac294 (commit)
       via  7fe8735104b8306734dd12ae87eed430e0ba4d37 (commit)
       via  99c8f7e90c6ac512dbb0c3eefb55c74b4d097d62 (commit)
       via  a8baa45aecc22763a9f86e722ca1c6b7bc88b150 (commit)
       via  88d03b1645d78334eb6f1fee52838a08539a6aba (commit)
       via  47a1db09a2d2eb78b4bcd27394d15bae29ca0d52 (commit)
       via  68a727302002ca53f41ed282abc1c18a8559579e (commit)
       via  a81b302953eca90d5fb2998fb655406324f67865 (commit)
       via  4d11c32874f4cbc64c7bcb2092970fa5c07b1d0e (commit)
       via  7e47bdc0829d7ac856028a99389310f721a265ce (commit)
       via  cbaaa2972bb3bf1f67af3ca5d8acf9c2e5029ae1 (commit)
       via  febcbd2127183740a7d536fd26a65c3ed1d0df9e (commit)
       via  d62eae5705e001ed7e39832b52ae139c19549ab8 (commit)
       via  08f345741110c6e25fa6a4349885c3066acf5205 (commit)
       via  bcf3df6ca96845755eee6c762f57548de8aba610 (commit)
       via  3f0ce34c626e7d4199239faee2ea3b4933c9df26 (commit)
       via  53272e29ad9c2a6c81ab35a405c57b1799f3f832 (commit)
       via  b00bff961ea786b0cbd8ec7faf554efae72169ea (commit)
       via  058cf7001e8a57ff0a1e19aadf3e0e068b7e69f4 (commit)
       via  84104cb900774fd2987636e59e562477c3ed2977 (commit)
       via  d690f9e9f8b8a0aeda311913589ae48805f7e3b8 (commit)
       via  aaa439e1d16607caa320e55fc3963281993637ce (commit)
       via  d86cd8816c6a6458b6f4f9c33200faf627bd2e7a (commit)
       via  bad8b5e010adcd9df85c4b3a58678112d328e6b7 (commit)
       via  7d1ca6f73407d9752402c84da4b41e224a434181 (commit)
      from  0621c7c8161b7b94cc9249ab3e71855d3030b6fb (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 45cd78030f18a792d0761160bb96116d19801109
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jun 3 01:37:55 2008 +0200

    netapi: fix some build warnings.
    
    Guenther

commit d8fad6bf442ac6f218c1c4572da9f1e9932c9cee
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jun 3 00:42:00 2008 +0200

    netapi: use libnetapi_samr_lookup_and_open_alias().
    
    Guenther

commit 890d63f31c0ff3931b8efb627c3a375850a59a9a
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jun 3 00:41:36 2008 +0200

    netapi: add libnetapi_samr_lookup_and_open_alias().
    
    Guenther

commit d1bf8c5ae6f4e3ade2000dd884c8384fb4b9f12c
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jun 3 00:13:59 2008 +0200

    netapi: use libnetapi_samr_open_builtin_domain().
    
    Guenther

commit f15a7f9ab1da88369185beda267f3e67a3b36191
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jun 3 00:13:39 2008 +0200

    netapi: add libnetapi_samr_open_builtin_domain().
    
    Guenther

commit 3d037a07e015a3af75dde054cef4c0bb7795fbb5
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 23:55:45 2008 +0200

    netapi: let libnetapi_samr_open_domain return WERROR.
    
    Guenther

commit cb20271012e7713a28c302e199b676bdb821e5e4
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 23:37:42 2008 +0200

    netapi: add public header for NetLocalGroupSetInfo().
    
    Guenther

commit f991b4d58ed660e648f29c3f25195072f91643ba
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 23:36:25 2008 +0200

    netapi: Implement NetLocalGroupSetInfo().
    
    Guenther

commit abd3f701340a31d9c3779cfe37c639f9105dfdb3
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 22:37:03 2008 +0200

    netapi: add NetLocalGroupSetInfo() example code.
    
    Guenther

commit 325f419636a69c40ee25c068787866384ef52279
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 22:29:32 2008 +0200

    netapi: add NetLocalGroupSetInfo() skeleton.
    
    Guenther

commit 68cad7322fe7a6bad7c9378f0d610a3b713b4b18
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 22:26:01 2008 +0200

    re-run make idl.
    
    Guenther

commit 0e02b40ae8a63a299f221dce82725b9151a7e499
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 22:25:07 2008 +0200

    netapi: add NetLocalGroupSetInfo() to IDL.
    
    Guenther

commit d735ee79fa5b9b7ec409ea387e4ff10357e417e7
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 22:20:14 2008 +0200

    netapi: implement NetLocalGroupGetInfo().
    
    Guenther

commit 591003b109d936b62cc80827971c201b3ea79e39
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 20:28:31 2008 +0200

    netapi: add NetLocalGroupGetInfo() example code.
    
    Guenther

commit 4d40d8b51a5323c36ff78ccfc4d7405ac97dde6b
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 20:27:49 2008 +0200

    netapi: add NetLocalGroupGetInfo() to public headers.
    
    Guenther

commit f70e37a7fe1915f557e194237a8bb26bcf9635d7
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 20:20:27 2008 +0200

    netapi: add NetLocalGroupGetInfo() skeleton.
    
    Guenther

commit 39e3a29cb9a57d5f79e503f7d4873b5c8a844976
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 20:19:36 2008 +0200

    re-run make idl.
    
    Guenther

commit c817c0c5bcf2578aa7f26403c0ce567281e4b019
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 20:19:18 2008 +0200

    netapi: add NetLocalGroupGetInfo() to IDL.
    
    Guenther

commit 6ebd618cc768df142b035362cc648d8bc2c1bc89
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:46:04 2008 +0200

    netapi: add NetLocalGroupDel() example code.
    
    Guenther

commit efd4a899f5d139b5e3e22660f5fb1c12f59525fc
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:45:23 2008 +0200

    netapi: add NetLocalGroupDel() to public headers.
    
    Guenther

commit d2426f53fabaf75d130fb99216b71299f4371253
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:44:32 2008 +0200

    netapi: Implement NetLocalGroupDel().
    
    Guenther

commit 4234c87c6c30434bc5bcfcc003fdaa0114e9d74a
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:20:25 2008 +0200

    netapi: add NetLocalGroupDel() skeleton.
    
    Guenther

commit 929ecc693a44fbadadcbb9000220bce9dfa6904d
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:17:53 2008 +0200

    re-run make idl.
    
    Guenther

commit b4fafdeebf43a8bd65d5c99432de373594f36180
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:17:13 2008 +0200

    netapi: add NetLocalGroupDel() to IDL.
    
    Guenther

commit ce60450d831ee2f4ab18c3ce09decee548ec4543
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:13:26 2008 +0200

    netapi: add NetLocalGroupAdd() example.
    
    Guenther

commit 05ded246426415b61597d003ffac519847c08620
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:12:54 2008 +0200

    netapi: add NetLocalGroupAdd to public api.
    
    Guenther

commit f68f75a6e4b4ba8b38cac7578c65dc7361315b28
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 19:02:52 2008 +0200

    netapi: Implement NetLocalGroupAdd().
    
    Guenther

commit 528544d4ce8fa27940a2f5e3c989cf37ef888f94
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 17:34:53 2008 +0200

    netapi: add NetLocalGroupAdd() skeleton.
    
    Guenther

commit 8d865b9a53da70d613425a8dc2ee1b0ca12843ac
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 17:31:58 2008 +0200

    re-run make idl.
    
    Guenther

commit fa86b2cf5c6f5654fc7545de467c47626573f97c
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 17:31:38 2008 +0200

    netapi: add NetLocalGroupAdd() to IDL.
    
    Guenther

commit b07445e86f43d6e9e45b7c502ab7998bca4db14f
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 17:31:00 2008 +0200

    netapi: use libnetapi_samr_open_domain().
    
    Guenther

commit a99906f661faa104da4b40707597ceb4542548f8
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 17:29:55 2008 +0200

    netapi: add libnetapi_samr_open_domain().
    
    Guenther

commit 1a8df720306662c2109654c8666cd33dcb769ec4
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 14:58:43 2008 +0200

    netapi: Add NetGroupDelUser() example.
    
    Guenther

commit 10f69b3ce58be06d95e4dfd5782d9481f4af76bf
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 14:58:01 2008 +0200

    netapi: Implement NetGroupDelUser().
    
    Guenther

commit 7ebe949643a53f636a942171147f0be5e32b4a37
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 14:48:45 2008 +0200

    netapi: add NetGroupAddUser() example.
    
    Guenther

commit c727a49519b2da6c5eb9ccc5025ab844fe8330ad
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 14:46:56 2008 +0200

    netapi: implement NetGroupAddUser().
    
    Guenther

commit 973de861c98c62ba31ceb63b3434dc201ae8bf06
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 14:45:08 2008 +0200

    errors: add more WERRORs.
    
    Guenther

commit 6eba84edc60829f0cdf3508520625e66fe88afde
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:43:21 2008 +0200

    netapi: add dummy implementation for NetGroupAddUser() and NetGroupDelUser().
    
    Guenther

commit b18ef7ce05a3ea009c7779b498921bdd1e6ac294
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:41:58 2008 +0200

    re-run make idl.
    
    Guenther

commit 7fe8735104b8306734dd12ae87eed430e0ba4d37
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:41:35 2008 +0200

    netapi: add NetGroupAddUser() and NetGroupDelUser() to IDL.
    
    Guenther

commit 99c8f7e90c6ac512dbb0c3eefb55c74b4d097d62
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:07:02 2008 +0200

    netapi: add NetGroupGetInfo() example code.
    
    Guenther

commit a8baa45aecc22763a9f86e722ca1c6b7bc88b150
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:04:58 2008 +0200

    netapi: Implement NetGroupGetInfo_r().
    
    Guenther

commit 88d03b1645d78334eb6f1fee52838a08539a6aba
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:04:15 2008 +0200

    netapi: add dummy implementation of NetGroupGetInfo().
    
    Guenther

commit 47a1db09a2d2eb78b4bcd27394d15bae29ca0d52
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:00:59 2008 +0200

    re-run make idl.
    
    Guenther

commit 68a727302002ca53f41ed282abc1c18a8559579e
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 13:00:17 2008 +0200

    netapi: add NetGroupGetInfo() to IDL.
    
    Guenther

commit a81b302953eca90d5fb2998fb655406324f67865
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 12:59:30 2008 +0200

    netapi: Add NetGroupSetInfo() example code.
    
    Guenther

commit 4d11c32874f4cbc64c7bcb2092970fa5c07b1d0e
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 12:58:02 2008 +0200

    netapi: implement NetGroupSetInfo_r().
    
    Guenther

commit 7e47bdc0829d7ac856028a99389310f721a265ce
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 12:54:17 2008 +0200

    netapi: Add dummy implementation of NetGroupSetInfo().
    
    Guenther

commit cbaaa2972bb3bf1f67af3ca5d8acf9c2e5029ae1
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 12:48:46 2008 +0200

    re-run make idl.
    
    Guenther

commit febcbd2127183740a7d536fd26a65c3ed1d0df9e
Author: Günther Deschner <gd at samba.org>
Date:   Mon Jun 2 12:47:54 2008 +0200

    netapi: add NetGroupSetInfo to IDL.
    
    Guenther

commit d62eae5705e001ed7e39832b52ae139c19549ab8
Author: Günther Deschner <gd at samba.org>
Date:   Thu May 29 01:44:21 2008 +0200

    netapi: let NetGroupAdd_l and NetGroupDel_l call the remote functions.
    
    Guenther

commit 08f345741110c6e25fa6a4349885c3066acf5205
Author: Günther Deschner <gd at samba.org>
Date:   Thu May 29 01:43:52 2008 +0200

    netapi: add NetGroupDel() example code.
    
    Guenther

commit bcf3df6ca96845755eee6c762f57548de8aba610
Author: Günther Deschner <gd at samba.org>
Date:   Thu May 29 01:43:06 2008 +0200

    netapi: implement NetGroupDel_r().
    
    Guenther

commit 3f0ce34c626e7d4199239faee2ea3b4933c9df26
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 28 14:57:35 2008 +0200

    net: Use NetGroupAdd() for adding domain groups.
    
    Guenther

commit 53272e29ad9c2a6c81ab35a405c57b1799f3f832
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 28 14:56:45 2008 +0200

    netapi: add NetGroupAdd() example code.
    
    Guenther

commit b00bff961ea786b0cbd8ec7faf554efae72169ea
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 28 14:48:30 2008 +0200

    netapi: implement NetGroupAdd_r().
    
    Guenther

commit 058cf7001e8a57ff0a1e19aadf3e0e068b7e69f4
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 28 13:57:21 2008 +0200

    doserr: Add WERR_GROUP_EXISTS and WERR_SPECIAL_ACCOUNT.
    
    Guenther

commit 84104cb900774fd2987636e59e562477c3ed2977
Author: Günther Deschner <gd at samba.org>
Date:   Wed May 28 01:18:05 2008 +0200

    netapi: Add NetGroupDel/NetGroupAdd header.
    
    Guenther

commit d690f9e9f8b8a0aeda311913589ae48805f7e3b8
Author: Günther Deschner <gd at samba.org>
Date:   Tue May 27 12:11:28 2008 +0200

    libnetapi: add dummy implementation for NetGroupAdd() and NetGroupDel().
    
    Guenther

commit aaa439e1d16607caa320e55fc3963281993637ce
Author: Günther Deschner <gd at samba.org>
Date:   Tue May 27 12:09:26 2008 +0200

    re-run make idl.
    
    Guenther

commit d86cd8816c6a6458b6f4f9c33200faf627bd2e7a
Author: Günther Deschner <gd at samba.org>
Date:   Tue May 27 12:09:01 2008 +0200

    idl: add NetGroupDel() to libnetapi.
    
    Guenther

commit bad8b5e010adcd9df85c4b3a58678112d328e6b7
Author: Günther Deschner <gd at samba.org>
Date:   Tue May 27 12:06:44 2008 +0200

    re-run make idl.
    
    Guenther

commit 7d1ca6f73407d9752402c84da4b41e224a434181
Author: Günther Deschner <gd at samba.org>
Date:   Tue May 27 12:05:31 2008 +0200

    idl: add NetGroupAdd() to libnetapi.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/Makefile.in                                 |    5 +-
 source/include/doserr.h                            |    7 +
 source/lib/netapi/examples/Makefile.in             |   62 ++-
 source/lib/netapi/examples/group/group_add.c       |   90 ++
 source/lib/netapi/examples/group/group_adduser.c   |   91 ++
 source/lib/netapi/examples/group/group_del.c       |   82 ++
 source/lib/netapi/examples/group/group_deluser.c   |   91 ++
 source/lib/netapi/examples/group/group_getinfo.c   |  122 +++
 source/lib/netapi/examples/group/group_setinfo.c   |  142 +++
 .../netapi/examples/localgroup/localgroup_add.c    |  106 ++
 .../netapi/examples/localgroup/localgroup_del.c    |   83 ++
 .../examples/localgroup/localgroup_getinfo.c       |  112 +++
 .../examples/localgroup/localgroup_setinfo.c       |  128 +++
 source/lib/netapi/group.c                          | 1015 ++++++++++++++++++++
 source/lib/netapi/libnetapi.c                      |  454 +++++++++-
 source/lib/netapi/libnetapi.h                      |   76 ++
 source/lib/netapi/localgroup.c                     |  701 ++++++++++++++
 source/lib/netapi/netapi.h                         |  251 +++++
 source/lib/netapi/netapi_private.h                 |   14 +
 source/lib/netapi/samr.c                           |  150 +++
 source/lib/netapi/user.c                           |  270 +-----
 source/librpc/gen_ndr/libnetapi.h                  |  200 ++++
 source/librpc/gen_ndr/ndr_libnetapi.c              |  346 +++++++
 source/librpc/gen_ndr/ndr_libnetapi.h              |   55 +-
 source/librpc/idl/libnetapi.idl                    |  121 +++
 source/libsmb/doserr.c                             |    8 +
 source/utils/net_rpc.c                             |   91 +--
 27 files changed, 4566 insertions(+), 307 deletions(-)
 create mode 100644 source/lib/netapi/examples/group/group_add.c
 create mode 100644 source/lib/netapi/examples/group/group_adduser.c
 create mode 100644 source/lib/netapi/examples/group/group_del.c
 create mode 100644 source/lib/netapi/examples/group/group_deluser.c
 create mode 100644 source/lib/netapi/examples/group/group_getinfo.c
 create mode 100644 source/lib/netapi/examples/group/group_setinfo.c
 create mode 100644 source/lib/netapi/examples/localgroup/localgroup_add.c
 create mode 100644 source/lib/netapi/examples/localgroup/localgroup_del.c
 create mode 100644 source/lib/netapi/examples/localgroup/localgroup_getinfo.c
 create mode 100644 source/lib/netapi/examples/localgroup/localgroup_setinfo.c
 create mode 100644 source/lib/netapi/group.c
 create mode 100644 source/lib/netapi/localgroup.c
 create mode 100644 source/lib/netapi/samr.c


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 91710da..9f05165 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -864,7 +864,10 @@ LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
 		 lib/netapi/joindomain.o \
 		 lib/netapi/serverinfo.o \
 		 lib/netapi/getdc.o \
-		 lib/netapi/user.o
+		 lib/netapi/user.o \
+		 lib/netapi/group.o \
+		 lib/netapi/localgroup.o \
+		 lib/netapi/samr.o
 
 LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
 		 $(LIBSMBCONF_OBJ) \
diff --git a/source/include/doserr.h b/source/include/doserr.h
index 68dc0c1..b027ba4 100644
--- a/source/include/doserr.h
+++ b/source/include/doserr.h
@@ -211,6 +211,9 @@
 #define WERR_NO_SUCH_LOGON_SESSION W_ERROR(1312)
 #define WERR_USER_ALREADY_EXISTS W_ERROR(1316)
 #define WERR_NO_SUCH_USER W_ERROR(1317)
+#define WERR_GROUP_EXISTS W_ERROR(1318)
+#define WERR_MEMBER_IN_GROUP W_ERROR(1320)
+#define WERR_USER_NOT_IN_GROUP W_ERROR(1321)
 #define WERR_PASSWORD_RESTRICTION W_ERROR(1325)
 #define WERR_LOGON_FAILURE W_ERROR(1326)
 #define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
@@ -218,6 +221,8 @@
 #define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
 #define WERR_INVALID_DOMAIN_STATE W_ERROR(1353)
 #define WERR_INVALID_DOMAIN_ROLE W_ERROR(1354)
+#define WERR_SPECIAL_ACCOUNT W_ERROR(1371)
+#define WERR_ALIAS_EXISTS W_ERROR(1379)
 #define WERR_TIME_SKEW W_ERROR(1398)
 #define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(1500)
 #define WERR_SERVER_UNAVAILABLE W_ERROR(1722)
@@ -273,6 +278,8 @@
 #define WERR_BUF_TOO_SMALL		W_ERROR(NERR_BASE+23)
 #define WERR_JOB_NOT_FOUND		W_ERROR(NERR_BASE+51)
 #define WERR_DEST_NOT_FOUND		W_ERROR(NERR_BASE+52)
+#define WERR_GROUP_NOT_FOUND		W_ERROR(NERR_BASE+120)
+#define WERR_USER_NOT_FOUND		W_ERROR(NERR_BASE+121)
 #define WERR_USER_EXISTS		W_ERROR(NERR_BASE+124)
 #define WERR_NET_NAME_NOT_FOUND		W_ERROR(NERR_BASE+210)
 #define WERR_NOT_LOCAL_DOMAIN		W_ERROR(NERR_BASE+220)
diff --git a/source/lib/netapi/examples/Makefile.in b/source/lib/netapi/examples/Makefile.in
index 1e2e28c..13a682f 100644
--- a/source/lib/netapi/examples/Makefile.in
+++ b/source/lib/netapi/examples/Makefile.in
@@ -25,7 +25,17 @@ PROGS = bin/getdc at EXEEXT@ \
 	bin/user_add at EXEEXT@ \
 	bin/user_del at EXEEXT@ \
 	bin/user_enum at EXEEXT@ \
-	bin/user_dispinfo at EXEEXT@
+	bin/user_dispinfo at EXEEXT@ \
+	bin/group_add at EXEEXT@ \
+	bin/group_del at EXEEXT@ \
+	bin/group_setinfo at EXEEXT@ \
+	bin/group_getinfo at EXEEXT@ \
+	bin/group_adduser at EXEEXT@ \
+	bin/group_deluser at EXEEXT@ \
+	bin/localgroup_add at EXEEXT@ \
+	bin/localgroup_del at EXEEXT@ \
+	bin/localgroup_getinfo at EXEEXT@ \
+	bin/localgroup_setinfo at EXEEXT@
 
 all: $(PROGS)
 
@@ -63,6 +73,16 @@ USERADD_OBJ = user/user_add.o $(CMDLINE_OBJ)
 USERDEL_OBJ = user/user_del.o $(CMDLINE_OBJ)
 USERENUM_OBJ = user/user_enum.o $(CMDLINE_OBJ)
 USERDISPINFO_OBJ = user/user_dispinfo.o $(CMDLINE_OBJ)
+GROUPADD_OBJ = group/group_add.o $(CMDLINE_OBJ)
+GROUPDEL_OBJ = group/group_del.o $(CMDLINE_OBJ)
+GROUPSETINFO_OBJ = group/group_setinfo.o $(CMDLINE_OBJ)
+GROUPGETINFO_OBJ = group/group_getinfo.o $(CMDLINE_OBJ)
+GROUPADDUSER_OBJ = group/group_adduser.o $(CMDLINE_OBJ)
+GROUPDELUSER_OBJ = group/group_deluser.o $(CMDLINE_OBJ)
+LOCALGROUPADD_OBJ = localgroup/localgroup_add.o $(CMDLINE_OBJ)
+LOCALGROUPDEL_OBJ = localgroup/localgroup_del.o $(CMDLINE_OBJ)
+LOCALGROUPGETINFO_OBJ = localgroup/localgroup_getinfo.o $(CMDLINE_OBJ)
+LOCALGROUPSETINFO_OBJ = localgroup/localgroup_setinfo.o $(CMDLINE_OBJ)
 
 bin/getdc at EXEEXT@: $(BINARY_PREREQS) $(GETDC_OBJ)
 	@echo Linking $@
@@ -100,6 +120,46 @@ bin/user_dispinfo at EXEEXT@: $(BINARY_PREREQS) $(USERDISPINFO_OBJ)
 	@echo Linking $@
 	@$(CC) $(FLAGS) -o $@ $(USERDISPINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
 
+bin/group_add at EXEEXT@: $(BINARY_PREREQS) $(GROUPADD_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/group_del at EXEEXT@: $(BINARY_PREREQS) $(GROUPDEL_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/group_setinfo at EXEEXT@: $(BINARY_PREREQS) $(GROUPSETINFO_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPSETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/group_getinfo at EXEEXT@: $(BINARY_PREREQS) $(GROUPGETINFO_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/group_adduser at EXEEXT@: $(BINARY_PREREQS) $(GROUPADDUSER_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPADDUSER_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/group_deluser at EXEEXT@: $(BINARY_PREREQS) $(GROUPDELUSER_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(GROUPDELUSER_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/localgroup_add at EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPADD_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(LOCALGROUPADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/localgroup_del at EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPDEL_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(LOCALGROUPDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/localgroup_getinfo at EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPGETINFO_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(LOCALGROUPGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
+bin/localgroup_setinfo at EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPSETINFO_OBJ)
+	@echo Linking $@
+	@$(CC) $(FLAGS) -o $@ $(LOCALGROUPSETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
+
 clean:
 	-rm -f $(PROGS)
 	-rm -f core */*~ *~ \
diff --git a/source/lib/netapi/examples/group/group_add.c b/source/lib/netapi/examples/group/group_add.c
new file mode 100644
index 0000000..4da97c5
--- /dev/null
+++ b/source/lib/netapi/examples/group/group_add.c
@@ -0,0 +1,90 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  NetGroupAdd query
+ *  Copyright (C) Guenther Deschner 2008
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <netapi.h>
+
+#include "common.h"
+
+int main(int argc, const char **argv)
+{
+	NET_API_STATUS status;
+	struct libnetapi_ctx *ctx = NULL;
+	const char *hostname = NULL;
+	const char *groupname = NULL;
+	struct GROUP_INFO_1 g1;
+	uint32_t parm_error = 0;
+
+	poptContext pc;
+	int opt;
+
+	struct poptOption long_options[] = {
+		POPT_AUTOHELP
+		POPT_COMMON_LIBNETAPI_EXAMPLES
+		POPT_TABLEEND
+	};
+
+	status = libnetapi_init(&ctx);
+	if (status != 0) {
+		return status;
+	}
+
+	pc = poptGetContext("group_add", argc, argv, long_options, 0);
+
+	poptSetOtherOptionHelp(pc, "hostname groupname");
+	while((opt = poptGetNextOpt(pc)) != -1) {
+	}
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	hostname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	groupname = poptGetArg(pc);
+
+	/* NetGroupAdd */
+
+	g1.grpi1_name = groupname;
+	g1.grpi1_comment = "Domain Group created using NetApi example code";
+
+	status = NetGroupAdd(hostname,
+			    1,
+			    (uint8_t *)&g1,
+			    &parm_error);
+	if (status != 0) {
+		printf("NetGroupAdd failed with: %s\n",
+			libnetapi_get_error_string(ctx, status));
+	}
+
+ out:
+	libnetapi_free(ctx);
+	poptFreeContext(pc);
+
+	return status;
+}
diff --git a/source/lib/netapi/examples/group/group_adduser.c b/source/lib/netapi/examples/group/group_adduser.c
new file mode 100644
index 0000000..253b3c5
--- /dev/null
+++ b/source/lib/netapi/examples/group/group_adduser.c
@@ -0,0 +1,91 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  NetGroupAddUser query
+ *  Copyright (C) Guenther Deschner 2008
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <netapi.h>
+
+#include "common.h"
+
+int main(int argc, const char **argv)
+{
+	NET_API_STATUS status;
+	struct libnetapi_ctx *ctx = NULL;
+	const char *hostname = NULL;
+	const char *groupname = NULL;
+	const char *username = NULL;
+
+	poptContext pc;
+	int opt;
+
+	struct poptOption long_options[] = {
+		POPT_AUTOHELP
+		POPT_COMMON_LIBNETAPI_EXAMPLES
+		POPT_TABLEEND
+	};
+
+	status = libnetapi_init(&ctx);
+	if (status != 0) {
+		return status;
+	}
+
+	pc = poptGetContext("group_adduser", argc, argv, long_options, 0);
+
+	poptSetOtherOptionHelp(pc, "hostname groupname username");
+	while((opt = poptGetNextOpt(pc)) != -1) {
+	}
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	hostname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	groupname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	username = poptGetArg(pc);
+
+	/* NetGroupAddUser */
+
+	status = NetGroupAddUser(hostname,
+				 groupname,
+				 username);
+	if (status != 0) {
+		printf("NetGroupAddUser failed with: %s\n",
+			libnetapi_get_error_string(ctx, status));
+	}
+
+ out:
+	libnetapi_free(ctx);
+	poptFreeContext(pc);
+
+	return status;
+}
diff --git a/source/lib/netapi/examples/group/group_del.c b/source/lib/netapi/examples/group/group_del.c
new file mode 100644
index 0000000..789e429
--- /dev/null
+++ b/source/lib/netapi/examples/group/group_del.c
@@ -0,0 +1,82 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  NetGroupDel query
+ *  Copyright (C) Guenther Deschner 2008
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <netapi.h>
+
+#include "common.h"
+
+int main(int argc, const char **argv)
+{
+	NET_API_STATUS status;
+	struct libnetapi_ctx *ctx = NULL;
+	const char *hostname = NULL;
+	const char *groupname = NULL;
+
+	poptContext pc;
+	int opt;
+
+	struct poptOption long_options[] = {
+		POPT_AUTOHELP
+		POPT_COMMON_LIBNETAPI_EXAMPLES
+		POPT_TABLEEND
+	};
+
+	status = libnetapi_init(&ctx);
+	if (status != 0) {
+		return status;
+	}
+
+	pc = poptGetContext("group_del", argc, argv, long_options, 0);
+
+	poptSetOtherOptionHelp(pc, "hostname groupname");
+	while((opt = poptGetNextOpt(pc)) != -1) {
+	}
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	hostname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	groupname = poptGetArg(pc);
+
+	/* NetGroupDel */
+
+	status = NetGroupDel(hostname, groupname);
+	if (status != 0) {
+		printf("NetGroupDel failed with: %s\n",
+			libnetapi_get_error_string(ctx, status));
+	}
+
+ out:
+	libnetapi_free(ctx);
+	poptFreeContext(pc);
+
+	return status;
+}
diff --git a/source/lib/netapi/examples/group/group_deluser.c b/source/lib/netapi/examples/group/group_deluser.c
new file mode 100644
index 0000000..751ab5c
--- /dev/null
+++ b/source/lib/netapi/examples/group/group_deluser.c
@@ -0,0 +1,91 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  NetGroupDelUser query
+ *  Copyright (C) Guenther Deschner 2008
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <netapi.h>
+
+#include "common.h"
+
+int main(int argc, const char **argv)
+{
+	NET_API_STATUS status;
+	struct libnetapi_ctx *ctx = NULL;
+	const char *hostname = NULL;
+	const char *groupname = NULL;
+	const char *username = NULL;
+
+	poptContext pc;
+	int opt;
+
+	struct poptOption long_options[] = {
+		POPT_AUTOHELP
+		POPT_COMMON_LIBNETAPI_EXAMPLES
+		POPT_TABLEEND
+	};
+
+	status = libnetapi_init(&ctx);
+	if (status != 0) {
+		return status;
+	}
+
+	pc = poptGetContext("group_deluser", argc, argv, long_options, 0);
+
+	poptSetOtherOptionHelp(pc, "hostname groupname username");
+	while((opt = poptGetNextOpt(pc)) != -1) {
+	}
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	hostname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	groupname = poptGetArg(pc);
+
+	if (!poptPeekArg(pc)) {
+		poptPrintHelp(pc, stderr, 0);
+		goto out;
+	}
+	username = poptGetArg(pc);
+
+	/* NetGroupDelUser */
+
+	status = NetGroupDelUser(hostname,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list