Günther Deschner
f092d689c5
s3-pdb_ldap: Fix bug #4296 : Clean up group membership while deleting a user.
...
Note that this only is tried with editposix=yes.
Guenther
2009-09-02 12:40:47 +02:00
Günther Deschner
360868b6e8
s3-schannel: remove remaining code that was using "struct dcinfo".
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
b089506136
s3-schannel: upgrade old format schannel_store.tdb.
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
a09b627ecc
s3-schannel: add simple wrappers to fetch and store schannel auth info.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
7c972d83d2
s3-schannel: make open_schannel_session_store() public.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
20225d83dd
s3-pdb_ldap: Make ldapsam_alias_memberships behave like the tdbsam equivalent.
...
This lets samr_GetAliasMembership return with NT_STATUS_OK when called with 0
sids (just what w2k3 does).
Guenther
2009-08-03 16:32:15 +02:00
Volker Lendecke
a488334bf1
Rename LOOKUP_NAME_EXPLICIT to LOOKUP_NAME_NO_NSS
...
It took me a bit to understand what this flag does. I hope this is
a bit clearer, at least it is to me.
2009-07-31 23:19:05 +02:00
Michael Adam
d498532389
s3:passdb: use transaction_wrapped write in tdbsam_new_rid()
...
Now all tdb writes in passdb use transactions.
Michael
2009-07-29 16:26:30 +02:00
Michael Adam
8da2f93716
s3:secrets: use transaction wrapped store in get rand seed.
...
Now secrets.tdb is only writen with transactions.
Michael
2009-07-29 16:26:29 +02:00
Michael Adam
ded0ce8345
s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.
...
Michael
2009-07-29 16:26:21 +02:00
Jeremy Allison
0259a303f4
Fix Coverity CIDs 887, 888. Don't pass NULL's to functions
...
that deref them.
Jeremy.
2009-07-17 21:50:33 -07:00
Günther Deschner
4b6401ab2c
s3-passdb: fix wbc build warning.
...
Guenther
2009-07-14 23:37:36 +02:00
Volker Lendecke
d050541330
Fix bug 5886
...
Ok, that's a very long-standing one. I finally got around to install a recent
OpenLDAP and test the different variants of setting a NULL password etc.
Thanks all for your patience!
Volker
2009-07-14 23:16:28 +02:00
Günther Deschner
9f15ef11bd
s3-account_policy: add pdb_policy_type enum.
...
Guenther
2009-07-14 12:12:18 +02:00
Günther Deschner
e4fca7466d
s3-pdb_ads: set correct pdb field with the value from 'accountExpires' attribute.
...
Guenther
2009-07-13 21:56:31 +02:00
Günther Deschner
05fbe0c7f7
libds: merge the UF<->ACB flag mapping functions.
...
Guenther
2009-07-13 15:36:07 +02:00
Volker Lendecke
afc6f607d5
Return 0 domains from enum_trusteddoms
2009-07-10 22:01:56 +02:00
Volker Lendecke
d8556bbf13
Quieten events and tldap debug messages
2009-07-10 22:01:56 +02:00
Volker Lendecke
c624a704be
Make escape_ldap_string take a talloc context
2009-07-09 22:25:29 +02:00
Volker Lendecke
a5cd278f6f
pdb_ads: For cached samu entries, priv is NULL
...
We have to recreate the priv entry on demand. This needs fixing in
passdb... :-)
2009-07-04 12:54:23 +02:00
Volker Lendecke
bfd82e4979
Add pdb_ads_get_domain_info
2009-07-04 12:54:23 +02:00
Volker Lendecke
f6ce7e0625
pdb_ads: Use tldap_fetch_rootdse in pdb_ads_connect
2009-07-04 12:54:22 +02:00
Volker Lendecke
98fb2a18f9
pdb_ads: Fetch the domain GUID
2009-07-04 12:54:22 +02:00
Volker Lendecke
b8322ec2b2
Add pdb_get_domain_info
2009-07-04 12:54:22 +02:00
Volker Lendecke
1c778aa19a
Make pdb_ads return an additional flag
2009-07-04 12:54:22 +02:00
Volker Lendecke
91a8cb851e
Fix bug #6431 - local groups from 3.0 setups no longer found.
...
Search for groups without group suffix, group suffix is only used for new entries.
2009-06-30 11:42:15 -07:00
Günther Deschner
28ef5c3ece
s3-pdb_tdb: give 'unknown_str' the proper name 'comment' and set comment in passdb.
...
pdb_{get,set}_comment were already existing in the API but were never used.
Guenther
2009-06-29 22:36:12 +02:00
Stefan Metzmacher
ce8159b30e
s3:pdb_ads: we need to make the fd for tldap/tsocket non-blocking
...
metze
2009-06-29 22:18:14 +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
325a58a653
Make pdb_ads survive a restart of Samba4
...
The search function retries once, the modifying call that hits a dead smbd
returns an error. The next try will reconnect. This was simple to implement and
provides a good compromise against Samba4 idling our connection. Most of the
modifying calls are quickly after a search (like OpenUser) anyway.
2009-06-28 15:51:02 +02:00
Michael Adam
a4bc5bfa95
s3:passdb: fix bug #6509 : use gid (not uid) cache in fetch_gid_from_cache().
...
With the previous code, the cache can never have been hit at all.
Michael
2009-06-26 14:15:44 +02:00
Volker Lendecke
e3fb71dac8
Only set the password if there is one
2009-06-24 16:30:55 +02:00
Volker Lendecke
63a70ba0ad
Prepare control support
...
We will have arrays of controls passed to tldap.c. Follow a mantra from the
classic book "Thinking Forth" by Leo Brodie: Favor counts over terminators :-)
This makes the parameter lists to tldap pretty long, but everyone will have
wrapper routines anyway, see for example tldap_search_fmt. And the OpenLDAP
manpages call the non-_ext routines deprecated, probably for a reason.
2009-06-20 18:54:06 +02:00
Volker Lendecke
62eb817c06
Fix setting passwords in pdb_ads
...
The samba4 password_hash module does not allow changing the password fields via
the "delete oldval" -> "add newval" set of modify operations, it requires a
single "replace with newval" operation.
Andrew, Samba3 by default uses that delete/add pair to detect if between
fetching the old value and storing the new one the old value has changed. This
is lost by using the "replace" operation.
Would it make sense to add this to the password_hash module?
Volker
2009-06-20 12:15:21 +02:00
Volker Lendecke
eb8c081771
talloc_tos() aborts if it can not get a stackframe
2009-06-20 12:15:21 +02:00
Volker Lendecke
6e4c57ced5
Activate tldap tracing in pdb_ads
2009-06-12 15:04:21 +02:00
Tim Prouty
ef55c2bd91
s3 passdb ads: add missing character
2009-06-11 11:01:51 -07:00
Volker Lendecke
117c19efa4
Implement pdb_enum_alias_memberships
2009-06-11 18:04:35 +02:00
Volker Lendecke
6372bd695d
Implement pdb_ads_set_aliasinfo
2009-06-10 23:57:49 +02:00
Volker Lendecke
baa47dd278
pdb_default_aliasinfo is just fine for pdb_ads right now
2009-06-10 23:57:49 +02:00
Volker Lendecke
96df53fdc7
Implement pdb_ads_lookup_rids
2009-06-10 23:08:09 +02:00
Volker Lendecke
6e9e0334ff
Fix a segfault in pdb_ads_delete_user()
...
If a user comes from the passdb cache, priv is NULL
2009-06-10 23:08:09 +02:00
Volker Lendecke
b660e51dec
If there are no mods, don't bother the ldap server
2009-06-09 22:40:36 +02:00
Volker Lendecke
078443bc67
Some more fields in pdb_ads_init_ads_from_sam()
2009-06-09 22:40:36 +02:00
Volker Lendecke
9af9a43464
Do not pull samAccountName twice
2009-06-09 21:46:30 +02:00
Volker Lendecke
0302bbda35
No need to free twice -- thanks gd :-)
2009-06-09 15:28:21 +02:00
Volker Lendecke
fa074c9916
Implement pdb_ads_[add|del]_groupmem
2009-06-09 15:25:15 +02:00
Volker Lendecke
63e6bb947a
Implement pdb_ads_delete_dom_group
2009-06-09 14:49:34 +02:00
Volker Lendecke
89bd09e7f3
Implement pdb_ads_enum_group_members
2009-06-08 23:59:12 +02:00
Volker Lendecke
46b5cce1e9
Fix some nonempty blank lines
2009-06-08 23:11:14 +02:00