1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/source/passdb
Simo Sorce 5b4838f62a r21606: Implement escaping function for ldap RDN values
Fix escaping of DN components and filters around the code
Add some notes to commandline help messages about how to pass DNs

revert jra's "concistency" commit to nsswitch/winbindd_ads.c, as it was
incorrect.
The 2 functions use DNs in different ways.

- lookup_usergroups_member() uses the DN in a search filter,
and must use the filter escaping function to escape it
Escaping filters that include escaped DNs ("\," becomes "\5c,") is the
correct way to do it (tested against W2k3).

- lookup_usergroups_memberof() instead uses the DN ultimately as a base dn.
Both functions do NOT need any DN escaping function as DNs can't be reliably
escaped when in a string form, intead each single RDN value must be escaped
separately.

DNs coming from other ldap calls (like ads_get_dn()), do not need escaping as
they come already escaped on the wire and passed as is by the ldap libraries

DN filtering has been tested.
For example now it is possible to do something like:
'net ads add user joe#5' as now the '#' character is correctly escaped when
building the DN, previously such a call failed with Invalid DN Syntax.

Simo.
2007-10-10 12:18:16 -05:00
..
login_cache.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
lookup_sid.c r20824: Send access to the trusted domain passwords through the pdb backend, so that 2007-10-10 12:17:10 -05:00
machine_sid.c r13316: Let the carnage begin.... 2007-10-10 11:06:23 -05:00
passdb.c r20985: leave room for terminating NULL when printing password hashes via 'pdbedit -L -w' 2007-10-10 12:17:22 -05:00
pdb_compat.c r13679: Commiting the rm_primary_group.patch posted on samba-technical 2007-10-10 11:10:23 -05:00
pdb_get_set.c r19058: Implement "user cannot change password", and complete "user must change 2007-10-10 12:15:06 -05:00
pdb_interface.c r21507: Fix some "cannot access LDAP when no root" bugs. 2007-10-10 12:18:09 -05:00
pdb_ldap.c r21606: Implement escaping function for ldap RDN values 2007-10-10 12:18:16 -05:00
pdb_nds.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
pdb_plugin.c r13460: by popular demand.... 2007-10-10 11:10:04 -05:00
pdb_smbpasswd.c r20998: Fix debug message 2007-10-10 12:17:25 -05:00
pdb_tdb.c r18703: Fix the annoying effect that happens when nscd is running: 2007-10-10 12:00:49 -05:00
secrets.c r20824: Send access to the trusted domain passwords through the pdb backend, so that 2007-10-10 12:17:10 -05:00
util_builtin.c r13316: Let the carnage begin.... 2007-10-10 11:06:23 -05:00
util_unixsids.c r17709: Fix cut-n-paste error with the name of gid_to_unix_group_sid(). 2007-10-10 11:38:46 -05:00
util_wellknown.c r13791: Having S-1-1-0 show up in winbind lookupsid does not really make sense. 2007-10-10 11:10:54 -05:00