1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/printing
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
..
load.c r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads 2007-10-10 10:53:46 -05:00
lpq_parse.c r16243: Fix Klocwork bugs #581 and #706, ensure we check 2007-10-10 11:17:27 -05:00
notify.c r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END() 2007-10-10 11:51:59 -05:00
nt_printing.c r21606: Implement escaping function for ldap RDN values 2007-10-10 12:18:16 -05:00
pcap.c r10371: Adding iPrint printing backend written by Joel J. Smith @ Novell. 2007-10-10 11:03:41 -05:00
print_aix.c r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads 2007-10-10 10:53:46 -05:00
print_cups.c r20245: merge 20244 from samba_3_0_24 2007-10-10 12:16:36 -05:00
print_generic.c r20124: clean up nested extern declaration warnings 2007-10-10 12:16:26 -05:00
print_iprint.c r20131: get rid of a few no previous prototype warnings 2007-10-10 12:16:26 -05:00
print_svid.c r11855: patch from Aruna Prabakar for checking that the spooler si running on HP-UX 2007-10-10 11:05:30 -05:00
print_test.c r20269: merge -r20264:20267 from SAMBA_3_0_24 2007-10-10 12:16:38 -05:00
printfsp.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
printing_db.c r16392: Klockwork #1168. Protect against null deref. 2007-10-10 11:18:51 -05:00
printing.c r21446: Karolins "printjob username" 2007-10-10 12:18:04 -05:00