1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

514 Commits

Author SHA1 Message Date
Jelmer Vernooij
c15e919a09 wafsamba: Clarify needs_python argument name, use pyembed/pyext where
applicable.

Allow using both pyembed and pyext, to prevent unresolved symbols.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
2010-10-10 03:54:01 +00:00
Andrew Bartlett
062b0ebc04 s4-libnet Remove libnet_samdump_keytab() and net samdump keytab
There is a beter implementation of this in Samba3, and this uses
functions in the credentials code that I want to remove.

The same functionality is available by running 'net samsync' and
'net export keytab'.  This isn't a DRS-backed utility, it only
used netlogon replication.

Andrew Bartlett
2010-09-24 09:25:43 +10:00
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
Andrew Tridgell
b0fb567f04 s4-waf: more dependencies on talloc
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
b9aa63887c s4-waf: cleanup use of LIBPOPT vs popt dependency 2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
9c0c4a5011 build: setnttoken depends on libreplace 2010-04-06 20:27:01 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Andrew Tridgell
6199ae4745 s4-ldb: fixed command line parsing in oLschema2ldif
It really doesn't make sense to use the ldb command line code
2010-03-25 15:45:40 +11:00
Stefan Metzmacher
d3e7266676 s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state
Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
fd86c9b687 s4:utils/net/drs: make use of dcerpc_binding_handle stubs
metze
2010-03-18 12:39:43 +01:00
Jelmer Vernooij
e49041065f getntacl: Remove manpage for removed utility. 2010-03-01 03:48:11 +01:00
Kamen Mazdrashki
8416570ea3 s4/drs_util: 'net drs showrepl' command implementation 2010-02-24 14:14:09 +02:00
Kamen Mazdrashki
3f5e9e9974 s4/drs_util: 'net drs replicate' command implementation 2010-02-24 14:14:08 +02:00
Kamen Mazdrashki
ff94094dfa s4/drs_util: Add public function for binding to a DC 2010-02-24 14:14:08 +02:00
Kamen Mazdrashki
394746285e s4/drs_util: Refactor code to use net_drs_connection object for DRSUAPI connecitons 2010-02-24 14:14:08 +02:00
Kamen Mazdrashki
9ddb10869c s4/drs_util: Move DRSUAPI connection data into separate object
We need this so we can create independent DRS connections to
different DCs.
2010-02-24 14:14:07 +02:00
Kamen Mazdrashki
e5aae24b3f s4/net_drs: Utility macros for conditions checking 2010-02-24 14:14:07 +02:00
Brad Hards
7a23b9769b Various source4 spelling fixes.
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-22 21:45:37 +01:00
Stefan Metzmacher
e82ac8655e s4:net_drs_bind: make some more stuff static
metze
2010-02-12 12:58:47 +01:00
Stefan Metzmacher
eee98110b3 s4:net/drs: use the full path to "utils/net/drs/net_drs*.h"
This fixes the build with automatic dependecies.

metze
2010-02-12 12:58:34 +01:00
Andrew Tridgell
f78a534dd2 s4-net-drs: fix some coding style issues
We should use the system/*.h headers for system includes. We also try
to avoid C++ comments.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-11 21:59:40 +11:00
Kamen Mazdrashki
976201d24a s4/net_drs: 'net drs kcc' command implementation
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-11 21:59:39 +11:00
Kamen Mazdrashki
fedc1152b5 s4/net_drs: 'net drs bind' command implementation
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-11 21:59:38 +11:00
Kamen Mazdrashki
61246da63c s4/net_drs: 'net drs' utility initial creation
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-11 21:59:38 +11:00
Jelmer Vernooij
bb83ffdc21 net: Fix python 2.4 compatibility. 2010-02-03 23:55:58 +01:00
Jelmer Vernooij
c42242d132 s4: Include Python.h early to avoid double definition errors. 2010-01-21 16:15:10 +13:00
Matthieu Patou
a4b01dd59c s4: utils recreate in python setntacl and getntacl
setntacl is able to set NTACL attribute from command line
  getntacl now use getopt for parsing command line option and is also able to
  dump the acl in the SDDL format.
2010-01-21 07:11:18 +13:00
Jelmer Vernooij
552e65679d net: Allow Python commands to return None instead of 0.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:21 +11:00
Jelmer Vernooij
31cc963ba0 net: Allow python subcommands to provide commands that are not recognized by
net itself.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:02 +11:00
Jelmer Vernooij
94454ad073 net: Make arguments available to python commands as sys.argv. 2009-12-29 16:26:21 +01:00
Jelmer Vernooij
e2c4d8281d s4/net: Allow options before arguments for Python commands. 2009-12-29 16:26:20 +01:00
Jelmer Vernooij
433f58f5a7 s4/net: Pass all arguments through to the Python commands. 2009-12-29 16:26:20 +01:00
Jelmer Vernooij
027f6ada63 s4/net: Use d_printf consistently when reporting errors. 2009-12-29 16:26:20 +01:00
Jelmer Vernooij
9e603dfb95 s4/net: Support parsing arguments in Python commands. 2009-12-29 16:26:19 +01:00
Jelmer Vernooij
9b1a210311 net: Support usage/help of subcommands implemented in Python. 2009-12-29 16:26:19 +01:00
Jelmer Vernooij
c064549e2e net: Support implementing subcommands in python. 2009-12-29 16:26:18 +01:00
Matthias Dieter Wallnöfer
5767b1dacc s4:utils/oLschema2ldif.c - remove (now) unused variables 2009-12-11 20:20:02 +01:00
Fernando J V da Silva
71e29cbf56 s4-drs: Using dsdb_msg_add_guid() utility function
Uses the dsdb_msg_add_guid() to add any kind of GUID attribute
to a ldb_message in several places of samba4 code.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-30 21:17:27 +11:00
Matthias Dieter Wallnöfer
e79dd2ef7d s4:net utility - add a notice for the "help" operation and format it's output of the command list better 2009-11-27 21:17:59 +01:00
Endi S. Dewata
8e5f5e3f05 s4:provision - Removed dependency on full Samba 3 schema from FDS 2009-11-16 07:57:40 +11:00
Andrew Tridgell
98e4393df9 s4-dsdb: create a static system_session context
This patch adds a system_session cache, preventing us from having to
recreate it on every ldb open, and allowing us to detect when the same
session is being used in ldb_wrap
2009-10-23 14:52:17 +11:00
Andrew Bartlett
63b584bb15 s4:utils Remove typo... 2009-09-19 14:51:18 -07:00
Andrew Bartlett
d58976012e s4:utils Explian fix for testparm -v
The problem here was that we take an address of a bool, and then (via
a void*) cast it to a int *, so put this in a comment.

Andrew Bartlett
2009-09-19 14:33:41 -07:00
Andrew Tridgell
22054523dc s4-testparm: fixed -v option
never pass a bool pointer to popt
2009-09-19 14:11:43 -07:00
Andrew Bartlett
47a7a2e442 s4:kerberos Add 'net export keytab' command for wireshark decryption
It is much easier to do decryption with wireshark when the keytab is
available for every host in the domain.  Running 'net export keytab
<keytab name>' will export the current (as pointed to by the supplied
smb.conf) local Samba4 doamin.

(This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4,
and so has a good chance of keeping working in the long term).

Andrew Bartlett
2009-07-28 08:52:43 +10:00
Stefan Metzmacher
b7c003c09c Revert "s4:kerberos Add 'net export keytab' command for wireshark decryption"
This reverts commit a40ce5d0d9.

This breaks the build...

Andrew, please repush it, when it's fixed:-)

metze
2009-07-27 17:41:11 +02:00
Andrew Bartlett
a40ce5d0d9 s4:kerberos Add 'net export keytab' command for wireshark decryption
It is much easier to do decryption with wireshark when the keytab is
available for every host in the domain.  Running 'net export keytab
<keytab name>' will export the current (as pointed to by the supplied
smb.conf) local Samba4 doamin.

(This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4,
and so has a good chance of keeping working in the long term).

Andrew Bartlett
2009-07-27 22:41:42 +10:00
Andrew Bartlett
8f3f62e9d6 s4:net Move net_vampire() to net_vampire.c 2009-07-06 16:41:42 +10:00
Matthias Dieter Wallnöfer
2627c6c0c2 Fixed some uninitialised variables
I tried hard to not change the program logic. Should fix bug #6439.
2009-06-19 11:32:01 +10:00