Kamen Mazdrashki
5c5e5ff607
s4-util: Print more informative error messages in 'net drs replicate'
2010-08-30 09:55:30 +03:00
Andrew Tridgell
a2cb6ef017
s4-net: moved the net join command to python
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Bartlett
6cf29b3e4f
s4:security Change struct security_token->sids from struct dom_sid * to struct dom_sid
...
This makes the structure much more like NT_USER_TOKEN in the source3/
code. (The remaining changes are that privilages still need to be merged)
Andrew Bartlett
2010-08-23 08:50:55 +10:00
Jelmer Vernooij
bc69a9d0d8
Avoid use of Samba DTD, which requires net access.
2010-08-22 14:05:58 +02:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Andrew Bartlett
0e212acd32
s4:testprogs Operate the blackbox kinit and net tests using the :local config
...
This :local tells selftest.pl to use the local smb.conf for the test
environment, not the generic client smb.conf
This then makes the rest work properly - otherwise, it may attempt to
connect to the wrong KDC for example.
The only problem is that we can't test the 'net join' with this set,
so this is removed from the test. The member server test environment
checks this anyway.
Andrew Bartlett
2010-07-16 07:08:41 +10:00
Andrew Tridgell
41fc0dd0ef
s4-net: the net binary depends on the auth subsystem
...
This helps with the OpenChange build
2010-07-08 17:28:44 +10:00
Kamen Mazdrashki
2f7fe9db02
s4/net-drs: Fix error messages typo and formatting
2010-06-26 01:16:01 +03:00
Kamen Mazdrashki
e40635c48d
s4/utils: fix few 'net drs replicate' error messages
...
mainly for the output to be more informative
2010-06-25 04:51:58 +03:00
Wilco Baan Hofman
9b5e0fe6bb
Add talloc_frees in error cases in net_gpo.c
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
e1f22174e1
Fix net gpo list to use the dsdb with extended DN's. Fixes memberOf group memberships.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
3895b8fbf8
Revert "Add old functionality back which was removed in commit 589a42e2."
...
This reverts commit 94e3b4a0d8b714c101803886d60ae6c484740d2f.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
c36bd5de6a
Add net gpo setacl support. Create gp_set_acl function. Show ACL in net gpo show.
...
Cleanup memory allocation of gp_create_gpo
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
41fae89daf
Add gpo create functionality. Also fix gPLink handling bugs
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
2941d2ebc3
Finish net gpo fetch function. Reorder arguments to make them more understandable. Rename getgpo to show.
...
This makes the net gpo break for it's samba 3 origins, but makes the syntax more intuitive.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
3b11a53304
Add fetch function for GPO which fetches all relevant files from the sysvol share.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
698144851a
Add getinheritance and setinheritance to net gpo util and library.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
a4cb72790c
Implemented delete group policy link function and corresponding feature in net gpo.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
f0353fddde
Changed add_gplink to set_gplink, so we can change gPLink options as well.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
40d7181507
Add add gPLink function and corresponding net gpo linkadd call.
...
Also added some definitions for future functions in policy.h
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
a1fceac844
Rename files to reflect the libpolicy naming convention. Also fix the GNU make build.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
b025715419
Rename libgpo to lib/policy to avoid confusion with samba3 and add waf build
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
626db5c3b5
Add old functionality back which was removed in commit 589a42e2
.
...
Andrew, please review!
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
08a7bb4abc
Add gpo list function for listing applicable GPO's for users/machines.
...
Implements:
* Hierarchical listing through all parent containers
* security ACL checking on the GPO
* User/computer disabled flags on the GPO
* gPLink disabled
* gPLink enforced
* Block inheritance on the container
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
6478a1edb7
Add gPLink and getgpo functionality to net gpo.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
8d5f8f577f
Created net gpo and new libgpo for samba 4. This adds the init function which finds a DC and connects to its LDAP. It also can return information on all group policy objects on a DC.
...
Aborted earlier attempt at reconciliation with samba 3.
Did not work out due to lack of ldb support in samba 3, also the
different registry libraries and different libnet did not help..
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Jelmer Vernooij
0a07b8ebfe
testparm: Convert to Python.
2010-06-20 13:16:30 +02:00
Jelmer Vernooij
1e35ec43f2
setnttoken: Remove empty utility.
2010-06-20 12:19:08 +02:00
Jelmer Vernooij
bd8fcd869d
s4: Fix build when there is a system-provided ldb.
2010-06-16 18:13:18 +02:00
Stefan Metzmacher
6dbcffb51d
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
...
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Jelmer Vernooij
55ef0ecea8
s4-python: Remove cruft to deal with static python modules, which are no
...
longer supported.
2010-05-31 00:21:42 +02:00
Matthias Dieter Wallnöfer
fe2a607640
s4:utils/ntlm_auth.c - fix "asprintf" calls
2010-05-28 10:04:48 +02:00
Andrew Bartlett
72ccbcacdd
s4:auth Allow the operational module to get a user's tokenGroups from auth
...
This creates a new interface to the auth subsystem, to allow an
auth_context to be created from the ldb, and then tokenGroups to be
calculated in the same way that the auth subsystem would.
Andrew Bartlett
2010-05-20 17:39:10 +10:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Matthias Dieter Wallnöfer
ce4c0261f6
s4:net utility - make outprinted description comments more consistent
...
I've added a [server connection needed] when commands won't work on the local
SamDB.
2010-05-09 19:14:47 +02:00
Kamen Mazdrashki
eed665d653
s4/net_drs: Fix Connection name printed
2010-04-28 12:11:03 +03:00
Andrew Tridgell
ec0bb2f46b
s4-net: fixed two compiler warnings
2010-04-22 19:36:16 +10:00
Andrew Tridgell
9b66b7abcc
s4-net: show a list of commands when someone runs "net" with no arguments
2010-04-20 20:59:24 +10:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Stefan Metzmacher
1293712b7d
s4:util/net/drs: don't look at p->last_fault_code for debugging anymore
...
metze
2010-04-15 09:34:03 +02:00
Jelmer Vernooij
673ca04114
s4-build: Fix autoconf build (net_machinepw.c is no longer present)
2010-04-09 14:21:24 +02:00
Jelmer Vernooij
9af8d02b22
s4-net: Convert machinepw command to python.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
f83aa13f62
s4-net: Convert vampire command over to Python.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
ffa73c412e
s4-net: Convert user subcommand to Python.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
26d928e948
s4-net: Convert 'net time' to python.
2010-04-08 23:41:08 +02:00
Jelmer Vernooij
0c6f434b7b
net: Convert time command to python.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
7f65f77b4d
Update waf build.
2010-04-08 22:46:02 +02:00
Jelmer Vernooij
cf17d48dec
Migrate 'net export keytab' to python.
2010-04-08 22:37:35 +02:00
Matthias Dieter Wallnöfer
2859b9df99
s4:net tool - add a "discard_const_p" to suppress the "PySys_SetArgv" warning
2010-04-06 14:54:11 +02:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00