1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

2012 Commits

Author SHA1 Message Date
Kai Blin
ab0ee6e9a6 util_str: Don't return memory from talloc_tos(), use mem_ctx instead. 2008-01-19 02:20:16 +01:00
Günther Deschner
f7100156a7 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
2008-01-17 16:54:46 +01:00
Michael Adam
903223b160 Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
f986a708be Use reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().
Rationale: Use reg_api instead of backend functions.

Michael
2008-01-17 16:25:11 +01:00
Michael Adam
92e95fe585 Convert sync_eventlog_params() to use reg_api instead of reg_frontend.
This is a step towards untangling the registry.
All places should use reg_api.c, reg_frontend should actually more
appropriately be named reg_backend_dispatcher and hidden from callers.

:-)

Michael
2008-01-17 16:25:11 +01:00
Günther Deschner
d9c8a2271d Merge lsarpc.idl from samba4 and rerun make idl.
Guenther
2008-01-16 16:32:12 +01:00
Günther Deschner
dea64a0d88 Fix (non-activated) _wkssvc_NetrJoinDomain2 server code.
Guenther
2008-01-16 11:08:05 +01:00
Michael Adam
edaf52a301 Fix Compiler warnings by including the proper header.
Michael
2008-01-13 12:52:25 +01:00
Jeremy Allison
a5cd3c9b65 Fix CID 524 - reference before allocation fail null check.
Jeremy.
2008-01-11 22:47:25 -08:00
Volker Lendecke
444e35e7df Some more talloc_tos() 2008-01-10 13:19:58 +01:00
Volker Lendecke
bc3bd7a8e7 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
2007-12-29 23:13:26 +01:00
Volker Lendecke
ef75dcc9ff Remove a silly static 2007-12-27 22:33:02 +01:00
Günther Deschner
1489870f05 Deactive remote join code server side until some last issues are resolved.
Guenther
2007-12-21 16:44:52 +01:00
Günther Deschner
9b0423e7d9 Add _wkssvc_NetrJoinDomain2() server.
Guenther
2007-12-21 15:29:10 +01:00
Volker Lendecke
5c392c4c6e Some C++ fixes 2007-12-21 09:58:21 +01:00
Volker Lendecke
5ab82d4f57 Some C++ warnings 2007-12-21 09:58:20 +01:00
Michael Adam
b5f600fab5 Change the prototype of the vfs function get_nt_acl().
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.

This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.

Michael
2007-12-19 23:08:01 +01:00
Volker Lendecke
735f593154 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
2007-12-19 21:09:10 +01:00
Jeremy Allison
b4dfec09e8 More static fstring elimination.
Jeremy.
2007-12-17 18:00:43 -08:00
Michael Adam
f7efc0eca9 Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames.
This patch is still incomplete in that winbindd does not walk
the the trusted domains to lookup unqualified names here.
Apart from that this fix should be pretty much complete.

Michael
2007-12-17 13:06:13 +01:00
Michael Adam
1d4e0ad114 Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().
Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael
2007-12-17 13:05:54 +01:00
Volker Lendecke
e82069f921 Make smb_np_struct talloc'ed
Convert "name" from string to a talloc'ed char *
2007-12-16 12:59:21 +01:00
Volker Lendecke
fcd45ad6fb Remove unused code 2007-12-16 12:59:14 +01:00
Volker Lendecke
eb523ba776 s/sid_to_string/sid_to_fstring/
least surprise for callers
2007-12-15 22:47:30 +01:00
Volker Lendecke
c7c885078b Replace sid_string_static with sid_to_string
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
2007-12-15 22:09:37 +01:00
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Stefan Metzmacher
cccb80b7b7 Revert "Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames."
As it breaks all tests which try to join a new machine account.
So more testing is needed...

metze

This reverts commit dd320c0924.
2007-12-14 08:28:10 +01:00
Michael Adam
dd320c0924 Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames.
This is a first patch aimed at fixing bug #4801.
It is still incomplete in that winbindd does not walk
the the trusted domains to lookup unqualified names here.
Apart from that this fix should be pretty much complete.

Michael
2007-12-13 10:15:13 +01:00
Jeremy Allison
bb8c044d42 Fix return values for invalid printers. Found by kblin
spoolss test.
Jeremy.
2007-12-10 12:11:45 -08:00
Jeremy Allison
52dc5eaef2 Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Volker Lendecke
616d6b97e5 Don't copy the rpc function pointers
This actually shows up in a valgrind massif run with 4.1% of allocated memory.
I don't see why we would have to make a copy here.

Metze?
2007-12-09 11:11:21 -08:00
Volker Lendecke
31d0a846db Remove some globals 2007-12-05 14:39:07 +01:00
Volker Lendecke
156c7f10bb Fix some C++ warnings 2007-12-01 10:43:35 -08:00
Günther Deschner
7539fb4c84 Merge recent wkssvc changes from samba4.
Guenther
2007-11-30 01:45:07 +01:00
Jeremy Allison
ba9e2be2b5 Remove the explicit TALLOC_CTX * from cli_struct.
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
2007-11-29 13:24:54 -08:00
Jeremy Allison
9755c53114 Fixed obvious typo.
Jeremy.
2007-11-27 23:00:11 -08:00
Jeremy Allison
b5a2a1e3f8 Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c
Jeremy.
2007-11-27 19:05:08 -08:00
Jeremy Allison
6a556fd73a Fix old cut-and-paste bug where the wrong field was being written to.
Jerry please check.
Jeremy.
2007-11-27 17:50:39 -08:00
Jeremy Allison
3052172d2b Whitespace cleanup.
Jeremy.
2007-11-27 17:48:59 -08:00
Jeremy Allison
0002a9e96b Remove pstrings from everything except srv_spoolss_nt.c.
Jeremy.
2007-11-27 14:35:30 -08:00
Guenther Deschner
9512029139 fix a obscure compiler warning
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeremy,

I have never seen this warning before:
"warning: comparison is always false due to limited range of data type".

Guenther
- --
Günther Deschner                    GPG-ID: 8EE11688
Red Hat                         gdeschner@redhat.com
Samba Team                              gd@samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHTIOOSOk3aI7hFogRArxMAJwP0ktE96tHcwn9nXG6AOqonpeDgQCgm/zi
54B6HJZvx6zdUTMFFNWqUb0=
=kUJa
-----END PGP SIGNATURE-----

>From 6a4935ee455adc1251fce2759f97d35f303bd40e Mon Sep 17 00:00:00 2001
From: =?utf-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org>
Date: Tue, 27 Nov 2007 21:48:39 +0100
Subject: [PATCH] Getting rid of "comparison is always false due to limited range of data type"
 warning.

Guenther
2007-11-27 13:03:19 -08:00
Jeremy Allison
55b4f9d003 Remove pstring from everything in rpc_server except
srv_spoolss_nt.c and srv_srvsvc_nt.c.
They're next :-).
Jeremy.
2007-11-27 11:22:58 -08:00
Volker Lendecke
1fab16ffb8 Remove some statics 2007-11-27 14:18:47 +01:00
Jeremy Allison
1ea3ac8014 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
2007-11-15 14:19:52 -08:00
Volker Lendecke
dcbe1bf942 Make [f]get_nt_acl return NTSTATUS 2007-11-13 15:47:01 +01:00
Jeremy Allison
eaf14c701b Remove all pstrings from smbd/chgpasswd.c.
Jeremy.
2007-11-12 15:02:50 -08:00
Volker Lendecke
5f205ab48d Make base64_encode_data_blob return a talloced string 2007-11-09 15:12:30 +01:00
Jeremy Allison
ab8934844a Fix case where we have no dns domain name. Return a talloc of "".
Jeremy.
2007-11-08 17:58:55 -08:00
Jeremy Allison
2a0173743d Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
2007-11-08 17:25:45 -08:00
Volker Lendecke
f5468d2c9a pstring removal 2007-11-05 03:16:48 +01:00