Günther Deschner
3b529d50be
s3-rpc_misc: clean out include/rpc_misc.h.
...
Well known rids don't really belong into an rpc header, just use the ones
defined in security.idl.
Guenther
2010-05-18 00:44:26 +02:00
Volker Lendecke
dcc850e3b3
s3: Make guest_user_info() static
2010-02-05 21:11:17 +01:00
Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +01:00
Michael Adam
30ab3a762e
s3:passdb: remove the uid_to_rid method - we only need uid_to_sid
...
Michael
2009-11-14 01:28:50 +01:00
Michael Adam
3b7448de14
s3:pdb_default_uid_to_sid: fix some debug statements.
...
Michael
2009-11-14 01:27:45 +01:00
Günther Deschner
9f15ef11bd
s3-account_policy: add pdb_policy_type enum.
...
Guenther
2009-07-14 12:12:18 +02:00
Volker Lendecke
b8322ec2b2
Add pdb_get_domain_info
2009-07-04 12:54:22 +02:00
Volker Lendecke
711544d494
Turn the pdb_rid_algorithm into a capabilities call that returns flags
2009-06-28 22:13:50 +02:00
Volker Lendecke
46b5cce1e9
Fix some nonempty blank lines
2009-06-08 23:11:14 +02:00
Volker Lendecke
a51e6ce43c
Pass a talloc_ctx to pdb_enum_aliasmem
2009-06-08 21:14:10 +02:00
Karolin Seeger
c94d1cd7b1
s3/passdb: Fix debug message: 'net setmaxrid' does not exist.
...
This is aiming bug #6351 .
Karolin
2009-06-06 15:11:16 +02:00
Günther Deschner
bff54b90c3
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
...
Guenther
2009-05-29 13:49:58 +02:00
Volker Lendecke
01ea4249da
TALLOC_ZERO_P->talloc_zero
2009-05-28 10:52:04 +02:00
Volker Lendecke
d07464b21f
Do not segfault in pdb_search_destructor if no real search was started
2009-05-28 10:52:04 +02:00
Jeremy Allison
b4c9cfb2af
Fix a bunch of compiler warnings about wrong format types.
...
Should make Solaris 10 builds look cleaner.
Jeremy.
2009-05-11 21:56:57 -07:00
Volker Lendecke
46bcb10b5a
Shape up pdb_search a bit by making it a talloc ctx with a destructor
2009-03-07 17:51:21 +01:00
Volker Lendecke
e9467ff26e
Fix a typo
2009-02-21 12:54:34 +01:00
todd stecher
989ad44d32
Memory leaks and other fixes found by Coverity
2009-01-21 17:13:03 -08:00
Jeremy Allison
aa4abac6b7
Fix more ‘asprintf’, declared with attribute warn_unused_result.
...
Jeremy.
2008-12-23 10:42:25 -08:00
Volker Lendecke
3c98d5bd98
Make memcache_add_talloc NULL out the source pointer
...
This is an orthogonality measure to make clear this pointer now belongs to the
cache.
(cherry picked from commit e6080c6e87d6fe3995b121a772bf3f6343fa666f)
2008-11-14 20:27:46 +01:00
Jeremy Allison
8962be69c7
Make us clean under valgrind --leak-check=full by using talloc_autofree_context() instead of NULL.
...
Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting
to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should
be deleted when their parent context is deleted, so freeing them at some arbitrary point later
will be a double-free.
Jeremy.
2008-11-06 20:48:13 -08:00
Jeremy Allison
0db0ce4974
Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a problem found by Boyang. Only the pdb_nds backend implements login attempts so this was broken for tdbsam and ldap.
...
Jeremy.
2008-11-06 06:42:04 -08:00
Karolin Seeger
669afbc291
pdb_interface: Fix typo in debug message.
...
Karolin
(This used to be commit e04da654c0
)
2008-07-29 12:05:40 +02:00
Stefan Metzmacher
cedfcaec0c
nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
...
metze
(This used to be commit 5f623f54a9
)
2008-02-13 10:44:52 +01:00
Karolin Seeger
932ec38a87
Fix typo.
...
Karolin
(This used to be commit 53b83bb53f
)
2008-02-08 10:05:47 +01:00
Volker Lendecke
3c99b7773e
Convert csamuser to memcache
...
(This used to be commit 476d3abf9c
)
2007-12-28 13:13:29 +01:00
Volker Lendecke
e70c97ef85
Remove the sampwent interface
...
(This used to be commit 9e80b969fb
)
2007-12-26 18:57:15 +01:00
Volker Lendecke
e518e19bc0
Remove Get_Pwnam and its associated static variable
...
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f593154
)
2007-12-19 21:09:10 +01:00
Volker Lendecke
2e07c2ade8
s/sid_to_string/sid_to_fstring/
...
least surprise for callers
(This used to be commit eb523ba776
)
2007-12-15 22:47:30 +01:00
Volker Lendecke
14ef4cdec1
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.
(This used to be commit c7c885078b
)
2007-12-15 22:09:37 +01:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec
)
2007-12-15 22:09:36 +01:00
Jeremy Allison
66298d8080
More pstring elimination.
...
Jeremy.
(This used to be commit 15074de938
)
2007-11-20 17:18:16 -08:00
Stefan Metzmacher
fdc27be1be
remove faked_create_user() BUILD_FARM hack as we have nss_wrapper now
...
metze
(This used to be commit fc98c19048
)
2007-11-09 09:53:02 +01:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Gerald Carter
99b031e190
r25401: BUG 4982: Don't delete lanman hashes on invalid logins when
...
using the "lanman auth = no". Tested by Guenter Kukkukk.
(This used to be commit 611fdd95a5
)
2007-10-10 12:31:02 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Gerald Carter
53719c6d7d
r23046: Few missing merges from cleaning out the Centeris winbindd tree.
...
Nothing of major interest. Will fix a few problems with one way trusts.
(This used to be commit 3d48a7e72d
)
2007-10-10 12:22:17 -05:00
Volker Lendecke
9e30a76c04
r22786: Some cleanup by Karolin Seeger: Remove unused pdb_find_alias, and change
...
return values of some alias-releated pdb functions from BOOL to NTSTATUS
Thanks :-)
(This used to be commit 590d2164b3
)
2007-10-10 12:21:57 -05:00
Volker Lendecke
a0f9db7a16
r22767: Argl. Typed in 'svn ci' in the wrong branch. Revert.
...
(This used to be commit 2c5b951eba
)
2007-10-10 12:21:55 -05:00
Volker Lendecke
16ae8eff93
r22766: Merge from 3_0:
...
r22412 | obnox | 2007-04-20 14:23:36 +0200 (Fr, 20 Apr 2007) | 5 lines
Add a "deletelocalgroup" subcommand to net sam.
Thanks to Karolin Seeger <ks@sernet.de>.
(This used to be commit fb6ac8a5b2
)
2007-10-10 12:21:55 -05:00
Gerald Carter
3bdd0e3650
r22066: Ensure that winbind can resolve SIDs in the S-1-22-{1,2}
...
domain to a uid.gid using the idmap_passdb backend.
(This used to be commit fc1aeee52d
)
2007-10-10 12:19:09 -05:00
James Peach
b4f19aea18
r21881: Make sure we are very specific when testing whether a backand can handle a
...
particular SID. Make sure that the passdb backend will accept the same set
range of local SIDs that the idmap system sends it.
Simo, Jerry - this is a 3_0_25 candidate. Can you please review?
(This used to be commit 86a70adb6a
)
2007-10-10 12:18:43 -05:00
Volker Lendecke
0d91334fe7
r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
...
who did not run the idle events to drop ldap connections.
Volker
(This used to be commit af3308ce5a
)
2007-10-10 12:18:33 -05:00
Gerald Carter
2b52e35770
r21507: Fix some "cannot access LDAP when no root" bugs.
...
The two culprits were
* pdb_get_account_policy()
* pdb_get_group_sid()
(This used to be commit 6a69caf690
)
2007-10-10 12:18:09 -05:00
Volker Lendecke
b906886e9e
r20824: Send access to the trusted domain passwords through the pdb backend, so that
...
in the next step we can store them in LDAP to be replicated across DCs.
Thanks to Michael Adam <ma@sernet.de>
Volker
(This used to be commit 3c879745cf
)
2007-10-10 12:17:10 -05:00
Volker Lendecke
dbea3a2b6f
r20707: Clean up pdb_interface.c a bit -- patch from Michael Adam <ma@sernet.de>
...
(This used to be commit d78c18a9fa
)
2007-10-10 12:17:04 -05:00
Simo Sorce
4225f9a4bd
r20116: Start merging in the work done to create the new idmap subsystem.
...
Simo.
(This used to be commit 50cd8bffee
)
2007-10-10 12:16:25 -05:00
Jeremy Allison
63609fbb04
r20090: Fix a class of bugs found by James Peach. Ensure
...
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
(This used to be commit 0ffca7559e
)
2007-10-10 12:16:24 -05:00
Gerald Carter
2145eff91d
r19419: BUG 4109: Patch from Timur Bakeyev. Fix bug causing smbd to turn off
...
winbindd and fail to disable the _NO_WINBIND environment.
(This used to be commit a6366b40b3
)
2007-10-10 12:15:34 -05:00