Changeset 740 for vendor/current/source4/scripting/bin
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/source4/scripting/bin
- Files:
-
- 9 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/scripting/bin/autoidl
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # -*- coding: utf-8 -*- 3 3 -
vendor/current/source4/scripting/bin/fullschema
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Works out the full schema … … 6 6 import base64 7 7 import optparse 8 import os9 8 import sys 10 9 … … 14 13 import samba 15 14 from samba import getopt as options, Ldb 16 from ldb import SCOPE_SUBTREE, SCOPE_BASE , LdbError15 from ldb import SCOPE_SUBTREE, SCOPE_BASE 17 16 import sys 18 17 -
vendor/current/source4/scripting/bin/get-descriptors
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Unix SMB/CIFS implementation. … … 28 28 # 29 29 30 import getopt31 30 import optparse 32 31 import sys 33 import os34 32 import base64 35 import re36 33 37 34 sys.path.insert(0, "bin/python") … … 40 37 from samba.auth import system_session 41 38 import samba.getopt as options 42 from samba import param43 39 from samba.ndr import ndr_pack, ndr_unpack 44 40 from samba.dcerpc import security 45 41 from samba import Ldb 46 42 from samba.samdb import SamDB 47 from ldb import SCOPE_SUBTREE, SCOPE_ ONELEVEL, SCOPE_BASE, LdbError43 from ldb import SCOPE_SUBTREE, SCOPE_BASE 48 44 49 45 parser = optparse.OptionParser("get-descriptor [options]") … … 66 62 67 63 class DescrGetter: 64 68 65 def __init__(self, localdomain, remotedomain): 69 66 self.samdb = SamDB(session_info=system_session(), lp=lp, options=["modules:paged_searches"]) -
vendor/current/source4/scripting/bin/minschema
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Works out the minimal schema for a set of objectclasses -
vendor/current/source4/scripting/bin/rebuildextendeddn
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Unix SMB/CIFS implementation. … … 24 24 # 25 25 26 import getopt27 26 import optparse 28 27 import os … … 34 33 from samba.credentials import DONT_USE_KERBEROS 35 34 from samba.auth import system_session 36 from samba import Ldb, substitute_var, valid_netbios_name, check_all_substituted 37 from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError, \ 38 timestring, CHANGETYPE_MODIFY, CHANGETYPE_NONE 35 from samba import Ldb 36 from ldb import SCOPE_SUBTREE, SCOPE_BASE 39 37 import ldb 40 38 import samba.getopt as options 41 from samba.samdb import SamDB42 39 from samba import param 43 from samba.provision import ProvisionPaths, ProvisionNames,provision_paths_from_lp,get_dnsyntax_attributes,get_linked_attributes 40 from samba.provision import ProvisionNames, provision_paths_from_lp 41 from samba.schema import get_dnsyntax_attributes, get_linked_attributes 44 42 45 43 parser = optparse.OptionParser("provision [options]") -
vendor/current/source4/scripting/bin/rpcclient
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 3 3 import sys, os, string -
vendor/current/source4/scripting/bin/samba3dump
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # 3 3 # Dump Samba3 data -
vendor/current/source4/scripting/bin/setup_dns.sh
r414 r740 17 17 } 18 18 19 OBJECTGUID=$(bin/ldbsearch - H "$PRIVATEDIR/sam.ldb" -b "CN=NTDS Settings,CN=$HOSTNAME,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=$RSUFFIX" objectguid|grep ^objectGUID| cut -d: -f2)19 OBJECTGUID=$(bin/ldbsearch -s base -H "$PRIVATEDIR/sam.ldb" -b "CN=NTDS Settings,CN=$HOSTNAME,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=$RSUFFIX" objectguid|grep ^objectGUID| cut -d: -f2) 20 20 21 21 echo "Found objectGUID $OBJECTGUID" … … 34 34 } 35 35 echo "Checking" 36 rndc flush 36 37 host $HOSTNAME.$DOMAIN 37 38 host $OBJECTGUID._msdcs.$DOMAIN -
vendor/current/source4/scripting/bin/smbstatus
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 # -*- coding: utf-8 -*- 3 3 # -
vendor/current/source4/scripting/bin/subunitrun
r414 r740 1 #!/usr/bin/ python1 #!/usr/bin/env python 2 2 3 3 # Simple subunit testrunner for python … … 22 22 # Find right directory when running from source tree 23 23 sys.path.insert(0, "bin/python") 24 sys.path.insert(1, "../lib/subunit/python")25 24 26 from subunit import SubunitTestRunner27 from unittest import TestProgram28 25 import optparse 29 import os 30 from samba import param 26 import samba 27 samba.ensure_external_module("testtools", "testtools") 28 samba.ensure_external_module("subunit", "subunit/python") 29 from subunit.run import SubunitTestRunner 31 30 import samba.getopt as options 32 31 import samba.tests 32 33 33 34 34 parser = optparse.OptionParser("subunitrun [options] <tests>") 35 35 credopts = options.CredentialsOptions(parser) 36 36 parser.add_option_group(credopts) 37 sambaopts = options.SambaOptions(parser) 38 parser.add_option_group(sambaopts) 39 parser.add_option_group(options.VersionOptions(parser)) 37 try: 38 from subunit.run import TestProgram 39 except ImportError: 40 from unittest import TestProgram 41 else: 42 parser.add_option('-l', '--list', dest='listtests', default=False, 43 help='List tests rather than running them.', 44 action="store_true") 40 45 41 args = parser.parse_args()[1] 46 opts, args = parser.parse_args() 42 47 43 samba.tests.cmdline_loadparm = sambaopts.get_loadparm() 44 samba.tests.cmdline_credentials = credopts.get_credentials(samba.tests.cmdline_loadparm) 48 samba.tests.cmdline_credentials = credopts.get_credentials(samba.tests.env_loadparm()) 49 if getattr(opts, "listtests", False): 50 args.insert(0, "--list") 45 51 46 52 runner = SubunitTestRunner()
Note:
See TracChangeset
for help on using the changeset viewer.