1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/utils
Simo Sorce e9e6af5951 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.
(This used to be commit 5b4838f62a)
2007-10-10 12:18:16 -05:00
..
debug2html.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
debugparse.c r20261: merge 20260 from samba_3_0_24 2007-10-10 12:16:37 -05:00
eventlogadm.c r20261: merge 20260 from samba_3_0_24 2007-10-10 12:16:37 -05:00
log2pcaphex.c r20261: merge 20260 from samba_3_0_24 2007-10-10 12:16:37 -05:00
net_ads_gpo.c r21606: Implement escaping function for ldap RDN values 2007-10-10 12:18:16 -05:00
net_ads.c r21606: Implement escaping function for ldap RDN values 2007-10-10 12:18:16 -05:00
net_cache.c r18310: Add a little test for some gencache routines 2007-10-10 11:51:19 -05:00
net_dns.c r20428: Rename dns_open. This conflicts with the dns_open symbol in 2007-10-10 12:16:48 -05:00
net_domain.c r19754: * When using a krb5 session setup, we don't fill in the server_name 2007-10-10 12:15:53 -05:00
net_groupmap.c r18271: Big change: 2007-10-10 11:51:18 -05:00
net_help.c r19883: Fix bug 4248 -- thanks to Pascal Terjan :-) 2007-10-10 12:16:04 -05:00
net_idmap.c r20116: Start merging in the work done to create the new idmap subsystem. 2007-10-10 12:16:25 -05:00
net_lookup.c r20874: We need to distinguish client sitenames per realm. We were overwriting 2007-10-10 12:17:16 -05:00
net_rap.c r19184: W2k3 returns its name for the GetServerInfo RAP call. Do the same. 2007-10-10 12:15:20 -05:00
net_rpc_audit.c r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607 2007-10-10 11:18:48 -05:00
net_rpc_join.c r18747: replace rpccli_lsa_close() with rpccli_lsa_Close() 2007-10-10 12:00:54 -05:00
net_rpc_printer.c r19991: Sorry for this 2000-liner... 2007-10-10 12:16:18 -05:00
net_rpc_registry.c r21462: Fix EnumValue (?) 2007-10-10 12:18:06 -05:00
net_rpc_rights.c r18747: replace rpccli_lsa_close() with rpccli_lsa_Close() 2007-10-10 12:00:54 -05:00
net_rpc_samsync.c r20001: Fix bug 4273, thanks to Pascal Terjan 2007-10-10 12:16:18 -05:00
net_rpc_service.c r18949: use sys_usleep() 2007-10-10 12:14:49 -05:00
net_rpc_sh_acct.c r13351: Fix copyright 2007-10-10 11:06:26 -05:00
net_rpc_shell.c r16346: Allow to exit a "net rpc shell" with 'quit' or 'exit'. 2007-10-10 11:17:37 -05:00
net_rpc.c r20917: Fix missing error returns pointed out by "Li, Ying (ESG)" <ying.li2@hp.com> 2007-10-10 12:17:20 -05:00
net_sam.c r20654: Fix from Karolin Seeger <ks@sernet.de>: Accept "forever", "off" and "never" as 2007-10-10 12:17:01 -05:00
net_status.c r16230: Fix Klocwork #861 and others. localtime and asctime 2007-10-10 11:17:26 -05:00
net_time.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
net_usershare.c r21114: Fix 'net usershare': Adding "guest_ok=y" required a correct acl. Set the 2007-10-10 12:17:39 -05:00
net_util.c r18747: replace rpccli_lsa_close() with rpccli_lsa_Close() 2007-10-10 12:00:54 -05:00
net.c r20116: Start merging in the work done to create the new idmap subsystem. 2007-10-10 12:16:25 -05:00
net.h r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO 2007-10-10 12:14:53 -05:00
netlookup.c r18271: Big change: 2007-10-10 11:51:18 -05:00
nmblookup.c r13530: Fix from William Jojo for #1970. Make nmblookup do 2007-10-10 11:10:10 -05:00
ntlm_auth_diagnostics.c r18029: More C++ stuff 2007-10-10 11:43:23 -05:00
ntlm_auth.c r21240: Fix longstanding Bug #4009. 2007-10-10 12:17:50 -05:00
ntlm_auth.h
passwd_util.c r13553: Fix all our warnings at -O6 on an x86_64 box. 2007-10-10 11:10:13 -05:00
pdbedit.c r19978: More "net sam policy" improvements. Thanks to Karolin Seeger <ks@sernet.de> 2007-10-10 12:16:17 -05:00
profiles.c r21540: Fix Bug #3713 and readd reporting what the profiles tool does (when 2007-10-10 12:18:11 -05:00
rpccheck.c
sharesec.c r21417: Janitor for Herb. Make sure sharesec.c is functionally 2007-10-10 12:18:03 -05:00
smbcacls.c r18745: Use the Samba4 data structures for security descriptors and security descriptor 2007-10-10 12:00:54 -05:00
smbcontrol.c r21115: notify_internal.c needs to remove the table entry if a process has crashed. So 2007-10-10 12:17:39 -05:00
smbcquotas.c r18271: Big change: 2007-10-10 11:51:18 -05:00
smbfilter.c r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500 2007-10-10 11:06:18 -05:00
smbget.c r20261: merge 20260 from samba_3_0_24 2007-10-10 12:16:37 -05:00
smbpasswd.c r16247: Fix Coverity ID 296 2007-10-10 11:17:27 -05:00
smbtree.c r20832: Remove extra pointers previously added to unique [out] pointers. Instead, 2007-10-10 12:17:11 -05:00
smbw_sample.c r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500 2007-10-10 11:06:18 -05:00
status_profile.c r20744: Fix the build (I missed some chkpth -> checkpath renames). 2007-10-10 12:17:08 -05:00
status.c r17177: Get rid of a global variable by adding a private data pointer to 2007-10-10 11:38:17 -05:00
testparm.c r15549: removing rhosts and 'hosts equiv' authentication features 2007-10-10 11:16:58 -05:00