1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-04 00:23:49 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Kai Blin
bb7c5fc4ec net: Rename functable3 to functable, get rid of old functables 2008-06-10 09:48:21 +02:00
Kai Blin
d0d1346f20 net: Use d_printf() instead of printf() in net_ads_gpo.c 2008-06-10 09:47:59 +02:00
Kai Blin
4418b4da61 net: Make "net ads gpo" use functable3 2008-06-10 09:47:21 +02:00
Kai Blin
1e9319cf88 net: Remove globals 2008-05-10 09:22:27 +02:00
Günther Deschner
e9c56250eb Bind Group Policy processing closer to the samba registry.
Guenther
2008-03-18 21:31:24 +01:00
Günther Deschner
5dc791f4cf r24413: Minor edits for libgpo.
Guenther
2007-10-10 12:29:42 -05:00
Günther Deschner
cc41b3b60f r23874: Some more minor edits for net ads gpo.
Guenther
2007-10-10 12:28:37 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
6fafa64bea r23772: Add ads_find_samaccount() helper function.
Guenther
2007-10-10 12:23:55 -05:00
Günther Deschner
1a2878db2d r23770: Some minor cleanups in libgpo
(including some valgrind errors, uninitialized vars, etc.)

Guenther
2007-10-10 12:23:55 -05:00
Simo Sorce
51d296f251 r21607: While committing I saw I had not newline terminated this string ... 2007-10-10 12:18:16 -05:00
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
Günther Deschner
d086babf9d r19003: Finally activate "net ads gpo".
For those who are interested, try

        net ads gpo refresh mybox$

to get your machine related GPOs downloaded to /var/lib/samba/gpo_cache.
Detailed information about GPOs is currently only printed when setting a
higher debuglevel then 0.

Guenther
2007-10-10 12:14:55 -05:00
Günther Deschner
e0e44bfadb r18988: Check and refresh expired GPOs.
Guenther
2007-10-10 12:14:54 -05:00
Günther Deschner
581152f819 r18987: Add some usage prints for "net ads gpo".
Guenther
2007-10-10 12:14:54 -05:00
Günther Deschner
a597ef83c4 r18984: Removing ads_gpo_get_sysvol_gpt_version() which was just doing stupid
things.

Guenther
2007-10-10 12:14:53 -05:00
Günther Deschner
7df5808d8b r18879: Fix crash for "net ads gpo list".
Guenther
2007-10-10 12:14:41 -05:00
Günther Deschner
40a6169ace r18853: Fix remaining warnings. Volker, should be fine now.
Guenther
2007-10-10 12:01:04 -05:00
Günther Deschner
01a8562fe1 r18852: Fix compiler warning (thanks Volker).
Guenther
2007-10-10 12:01:04 -05:00
Günther Deschner
a0aedee1c9 r18819: Fix build without LDAP.
Guenther
2007-10-10 12:01:03 -05:00
Günther Deschner
0ef504a0a6 r18177: Some build- and memleak-fixes for the (not build by default) ADS GPO
routines.

Guenther
2007-10-10 11:43:30 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00