1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-18 08:23:51 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Günther Deschner
6394257cc7 r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries().
This allows the ldap-backend to search much more effeciently. Machines
will be searched in the ldap_machine_suffix and users in the
ldap_users_suffix. (Note that we already use the ldap_group_suffix in
ldapsam_setsamgrent for quite some time).

Using the specific ldap-bases becomes notably important in large
domains: On my testmachine "net rpc trustdom list" has to search through
40k accounts just to list 3 interdomain-trust-accounts, similiar effects
show up the non-user query_dispinfo-calls, etc.

Also renamed all_machines to only_machines in load_sampwd_entries()
since that reflects better what is really meant.

Guenther
2007-10-10 10:53:59 -05:00
Jelmer Vernooij
760455875f r4788: Don't log mysql password at debug level 1. 2007-10-10 10:53:54 -05:00
Jelmer Vernooij
99dc2f36d1 r3974: - Fix assignment of a couple of fields in pdb_{mysql,pgsql}
- Use new DTD URL in pdb_xml
2007-10-10 10:53:26 -05:00
Jim McDonough
b7706f7e25 Try to remove the last vestiges of unknown_3...
Jelmer, can you look at the sql and xml backends please to verify?
-
Jelmer Vernooij
65ad2c02fd - Put functions for generating SQL queries in pdb_sql.c
- Add pgSQL backend (based on patch by Hamish Friedlander)
- Use query generate functions from pdb_mysql and pdb_pgsql
- Only pdb_pgsql.c needs to be changed whenever the fields in SAM_ACCOUNT change
-
Jelmer Vernooij
2c584efae6 Fix a bug and warn when configuration file values are incorrect. Thanks to
Wilco Baan Hofman <wilco@andoburg.nl>
-
Alexander Bokovoy
b00a81b543 Fix pdb_mysql. Jelmer will look into details tonight. -
Jeremy Allison
cd7bd8c2da The "unknown_5" 32 bit field in the user structs is actually 2 16-bit
fields, bad_password_count and logon_count. Ensure this is stored/fetched
in the various SAMs. As it replaces the unknown_5 field this fits
exactly into the tdb SAM without any binary problems. It also is added
to the LDAP SAM as two extra attributes. It breaks compatibility with
the experimental SAMs xml and mysql. The maintainers of these SAMs must
fix them so upgrades like this can be done transparently. I will insist
on the "experimental" status until this is solved.
Jeremy.
-
Jelmer Vernooij
9a603f6f07 Only set sids when they're retrurned by the MySQL query -
Jelmer Vernooij
bc4b51bcb2 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
-
Jelmer Vernooij
42e76c3123 Fix number of arguments to asprintf() -
Jelmer Vernooij
a986076a74 Don't store UID or GID -
Jelmer Vernooij
147c4d56d8 Patch from Stephan Metzmacher to add default arguments to lp_parm() smb.conf
parameters. Does not break binary compatibility with older modules.
-
Jelmer Vernooij
8d2aec7a73 - Fix modules build of pdb_mysql and pdb_xml
- Fix typo in script/installswat.sh
-
Jelmer Vernooij
1755d5f662 Use the new modules system for passdb (merge from HEAD) -
Jeremy Allison
aa8439a49e Finish adding strings to all talloc_init() calls.
Jeremy.
-
Jelmer Vernooij
2cc36ce0ee Improve DEBUG output somewhat more -
Jelmer Vernooij
065ed97832 Add more debug info -
Jelmer Vernooij
cf74ddc2fc Print the number of returned rows, not the number of fields -
Jelmer Vernooij
3c39bd9db0 Fix small typo -
Jelmer Vernooij
090a2015eb Add group management support (patch from metze) -
Jelmer Vernooij
99a2e7fde1 Adapt to latest pdb API changes - only thing left is group support -
Jelmer Vernooij
1d742e14ad Move pdb_mysql to source/passdb -