1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

3645 Commits

Author SHA1 Message Date
Günther Deschner
4801d0c6f3 Add NetUserEnum to libnetapi.
Guenther
(This used to be commit 6c933d0b3838808aeee7f4b29ee89aab8d203538)
2008-04-09 13:47:51 +02:00
Günther Deschner
b3422d1d1c Add Add NetUserDel example.
Guenther
(This used to be commit 3123e68bda70ad1cff9bd8f9375fd7935bf755dd)
2008-04-09 13:39:27 +02:00
Günther Deschner
fb538ad641 Add NetUserDel to libnetapi.
Guenther
(This used to be commit 92ba18fcd0816fb85846c6e788ea4a04c71e02a8)
2008-04-09 13:35:49 +02:00
Günther Deschner
41c8597ae3 Add NetUserAdd example.
Guenther
(This used to be commit 0d795606655a67d79c8c3bb2f3676ca7ee28f347)
2008-04-09 13:28:30 +02:00
Günther Deschner
6b2ae8e9ff Add NetUserAdd to libnetapi.
Guenther
(This used to be commit cb98996ed2ac93a0e15838048405772d2043021a)
2008-04-09 13:23:09 +02:00
Jeremy Allison
b360cdfeb9 Check x_fflush returns.
Jeremy.
(This used to be commit 5525dc5f09a79d30f6c52fc3a88c8bce3060e642)
2008-04-08 15:08:47 -07:00
Günther Deschner
16fca542d7 Move is_valid_policy_hnd() out of net.
Guenther
(This used to be commit aae4d91e726ef8dcad173cdd1d6f719d94462948)
2008-04-08 19:54:57 +02:00
Günther Deschner
af19343df8 Try to use kerberos in libnetapi.
Guenther
(This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
2008-04-08 19:42:26 +02:00
Günther Deschner
298824357a Add DsGetDcName libnetapi example.
Guenther
(This used to be commit 0216e55fa87a14fc45c320268f0511eb6638460b)
2008-04-08 19:40:47 +02:00
Günther Deschner
05202a5d4e Add DsGetDcName call to libnetapi library.
Guenther
(This used to be commit 27780e984152e38c8f80e1c67ddf13b73a2b220d)
2008-04-08 19:40:47 +02:00
Günther Deschner
6531d0b13f Fix includes in libnetapi examples common.c
Guenther
(This used to be commit 922ff9d01668c2c2ad10decfd09c0e7b3f0d7592)
2008-04-08 19:40:47 +02:00
Günther Deschner
cccaef9e08 Use popt in libetapi example code.
Guenther
(This used to be commit 6f239df3f5a57c9549f1637e53fd42d2ed604c3f)
2008-04-08 14:34:30 +02:00
Günther Deschner
0f86cc18ff Prefill in username in libnetapi ctx.
Guenther
(This used to be commit 394bdb89ef350db0ab6aca093054e1048a8ffe1f)
2008-04-08 14:29:21 +02:00
Günther Deschner
ba35a8c8dd Restructure inner workings of libnetapi a bit.
Guenther
(This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
2008-04-08 03:08:49 +02:00
Michael Adam
2c2379b321 dbwrap: fix more "tdb_chainunlock failed" messages
TALLOC_FREE(rec) before transaction_cancel also in dbwrap_trans_delete().

Michael
(This used to be commit 04cd914a1f12691d27ddc67887a757cd813848a7)
2008-04-07 23:40:18 +02:00
Björn Jacke
b6e9fffaa2 increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection.
(This used to be commit 42bc4ff7fd6bfc92bde015ae8f3a9fb62d443cd5)
2008-04-07 11:49:54 +02:00
Volker Lendecke
768a5a23e0 Fix bug 5375
Thanks to Moskvin for testing
(This used to be commit d3c31aa36c451f0a19496cd33c0b055b466e6b09)
2008-04-07 10:20:39 +02:00
Günther Deschner
bea4541e11 Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
(This used to be commit 65b4cb20ea3fb806cfd50281e08f32bea70fafce)
2008-04-04 02:53:40 +02:00
Michael Adam
24c54ee4fb libsmbconf: move initialization of registry value down after error checks.
Michael
(This used to be commit 2a8029985f9bde4da8ca20bc24d937150eab444c)
2008-04-03 15:43:04 +02:00
Günther Deschner
68bfa9682b Some fixes for netdomjoin-gui and support for browsing/joining OUs.
Guenther
(This used to be commit 4714bae0dbbb2ad010c2929f83de6bca84cfac46)
2008-04-02 11:18:10 +02:00
Günther Deschner
6c1c07bde3 Make sure to hand down the domain name in libnetapi NetUnjoinDomain.
Guenther
(This used to be commit 0058ab30de943f134792e3d66051206086987110)
2008-04-02 11:14:15 +02:00
Stefan Metzmacher
7704d4fb58 account_pol: use db_open_trans()
metze
(This used to be commit 888c2802b7bda92baae2dd0c1596f5e04bc3bfaa)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
0d234bd3c2 account_pol: use dbwrap_trans_store_uint32()
metze
(This used to be commit b1d63c8c1116f3429fb73aa6842105073385d1e8)
2008-04-01 14:04:23 +02:00
Volker Lendecke
9aa8d0c627 Convert account_pol.tdb to dbwrap
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 0b36871a0d795183f0e9dc78b654788b1988f06e)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
20dc21f474 dbwrap: fix a confusing "tdb_chainunlock failed" message
Unlock before we cancel the transaction...

metze
(This used to be commit d70a8e9c413a7d3993e0d11db5ae9cbc7fdb12c7)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
3f076ab773 dbwrap: add dbwrap_trans_store_uint32()
metze
(This used to be commit 9e739b4c99a9aba5c5bb58f3b6a9fb949e24c581)
2008-04-01 14:04:23 +02:00
Volker Lendecke
92e6d07ad9 Add dbwrap_trans_*_bystring
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 2cf2684a11027431e6a93992413a5a5a697a4ba0)
2008-04-01 14:04:22 +02:00
Volker Lendecke
16198dc51e Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
2008-04-01 14:04:22 +02:00
Volker Lendecke
fcdfff1cc8 Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
2008-04-01 14:04:22 +02:00
Volker Lendecke
d20f88c603 Add dbwrap_[fetch|store]_uint32
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit f1dd915ce802645166e0c8fc79d18d5ad41cfe7a)
2008-04-01 14:04:22 +02:00
Stefan Metzmacher
2fe572d043 sharesec: use db_open_trans()
metze
(This used to be commit 1c59142ccc46616c10b98c51601361f203d542d6)
2008-04-01 14:04:21 +02:00
Volker Lendecke
f8c569e066 Convert share_info.tdb to dbwrap
(This used to be commit bc9b4c43b8824cd53f9ab613bcbb94cd5193f43e)
2008-04-01 14:04:21 +02:00
Gerald W. Carter
8940fd09a6 Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP and WinXP64.
Defines a new value for the %a variable when detecting a Windows XP 64-bit client.
(This used to be commit 0c94918fb52c5345ce30490046b79f81712c30bf)
2008-03-31 14:34:43 -05:00
Michael Adam
9644b6cb50 Add a talloc context parameter to current_timestring() to fix memleaks.
current_timestring used to return a string talloced to talloc_tos().
When called by DEBUG from a TALLOC_FREE, this produced messages
"no talloc stackframe around, leaking memory". For example when
used from net conf.

This also adds a temporary talloc context to alloc_sub_basic().
For this purpose, the exit strategy is slightly altered: a common
exit point is used for success and failure.

Michael
(This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
2008-03-28 16:34:51 +01:00
Stefan Metzmacher
5273f05b89 libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now
This should fix the build on solaris.
Later this needs better fixing...

metze
(cherry picked from commit 89b7955733c34e9699a3b43ee54de92cb9469b90)
(This used to be commit fcb497951a86551ce9c4be7b352335dad3be127a)
2008-03-28 15:17:54 +01:00
Volker Lendecke
83947f0f6e Fix a memory leak
(This used to be commit ce1bd43cdae63ff05aefaded419388e7b9e3ba9a)
2008-03-28 13:44:30 +01:00
Michael Adam
04ae7b85ea dbwrap: fix dbwrap_trans_[delete|store]() to stop when transaction_start() failed.
Michael
(This used to be commit ab0aaed907fef233998ff0841d30eabef3263ee8)
2008-03-27 18:14:57 +01:00
Stefan Metzmacher
474916b70c dbwrap: add db_open_trans()
This should be used when transactions are wanted.
For now it's just a wrapper of db_open(), but this
will change.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 74a070b8a24fea1009e557f711b76fc14e8961dc)
2008-03-27 18:14:56 +01:00
Stefan Metzmacher
32e7cc5193 dbwrap: add dbwrap_trans_store_int32()
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit f05e889bc05a816aef5b9ce4f22267e977dade01)
2008-03-27 18:14:56 +01:00
Michael Adam
5c30841fe7 libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.c
This is not a proper bug but the code is clearer now
and we are tracking failure of open separate from that of close.

Michael
(This used to be commit 451fc9ae05f841883081a334e179cf31625a772c)
2008-03-27 11:46:39 +01:00
Michael Adam
3d8727343b libsmbconf: text - pass the cache instead of all private data to pm_process.
Michael
(This used to be commit ee46f0eca6ea21d0c51103252fecf911bb448687)
2008-03-27 00:32:09 +01:00
Michael Adam
916b30d502 libsmbconf: text - change the cache to be talloced
instead of having it directly as a member in the private data struct.
This makes it easier to flush and initialize the cache.

Michael
(This used to be commit 03efb72b4632e2bbb0838ca56a3e556448bda5c5)
2008-03-27 00:32:09 +01:00
Michael Adam
1c8ad296b9 libsmbconf: in text backend, put flushing of the cache into a helper function.
And use it also in the close operation.

Michael
(This used to be commit 8cb288124993eb59459e7e9777c65e58c0554d55)
2008-03-27 00:32:09 +01:00
Gerald W. Carter
f4f0d39bfa Fix a bug in the output from print_canonical_sockaddr() fix from 36f8bafbd3dee66a8....
Make sure that IPv4 addresses are not enclised in []'s.
(This used to be commit 4ddf58dbdc3d74cb72788ef4a2ec7587d4948c40)
2008-03-26 16:58:27 -05:00
Michael Adam
2e83818b3b libsmbconf: add a text backend to libsmbconf based on the params.c parser.
This is a simple implementation of text backend for libsmbconf.
It is read only. It uses the parser from params.c. It loads the
given config file and holds the parsed lists of strings in memory.
Config is only re-read if the time stamp of the config file has changed.
Brilliant performance on large files is not to be expected since the
string lists are not hashed. This might be added in the future.

Michael
(This used to be commit 4ea50843852b335a9bd4c0535a5b684134ad8326)
2008-03-26 14:55:05 +01:00
Michael Adam
a8d7febc7a smbconf: reformat - fix intentation.
This time this won't make me stumble, since there is no
magic in indented function headers here - no automatic
prototype generation... :-)

Michael
(This used to be commit 6d72fc4373adff01cf6e0e18f78082d1eab90064)
2008-03-26 11:15:04 +01:00
Michael Adam
f1c844c168 util_tdb: remove trivial and unused tdb_wipe().
It has been replaced by tdb_wipe_all().

Michael
(This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
2008-03-26 11:15:03 +01:00
Michael Adam
da27c77046 use tdb_wipe_all() instead of tdb_wipe() - it is faster...
Michael
(This used to be commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
2008-03-26 10:50:35 +01:00
Michael Adam
6efe4873dc util_tdb: make the _byblob fetch/store functions public again.
Users of these are currently being written...

Michael
(This used to be commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)
2008-03-26 10:50:35 +01:00
Michael Adam
6fa39aa87d util_tdb: add my (C) for the tdb validation code
Michael
(This used to be commit abf02a5a142c55d9e0053d319c867e4fcc3e6c30)
2008-03-25 15:55:34 +01:00