Andreas Schneider
2ab0b63bd8
s3-passdb: Added a pdb_try_account_unlock function.
...
The function checks if the account has been autolocked. If we have a
lockout_duration and a bad password time it checks if we can unlock the
account.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-30 10:43:34 -04:00
Günther Deschner
7ff7eb0b52
s3-build: only include nsswitch header where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
aba1bf4b5e
s3-build: only include memcache.h where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
ae36783c7b
s3-passdb: include samr.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Karolin Seeger
8ca88e2f81
s3-passdb: Fix typo in comment.
...
Karolin
2010-06-10 10:34:58 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Andrew Bartlett
a92b653af9
s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 types
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:24:55 +02:00
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