Displaying 20 results from an estimated 33 matches for "commanderror".
2016 May 18
1
Error with "samba-tool ntacl get --as-sddl"
> Hi, this is because when you use '--as-sddl', the python code does this:
>
> if as_sddl:
> try:
> domain_sid = security.dom_sid(samdb.domain_sid)
> except:
> raise CommandError("Unable to read domain SID from
> configuration files")
> self.outf.write(acl.as_sddl(domain_sid)+"\n")
>
> Or to put it in English, it tries to get the Domain SID from sam.ldb
> and this doesn't exist on a member server.
>
And yet the member...
2010 May 26
1
Samba4 Patch: newuseradv and newgroupadv scripts for net cmd utlity
Hi all,
As per Jelmer's request - in response to bug #7455 attached diff file.
Please let me know what you think and if any modificationes need to be
performed
Regards
Luk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newusergroupadv.diff
URL:
2016 May 17
3
Error with "samba-tool ntacl get --as-sddl"
On two Samba 4.4.2/4.4.3 member servers, "samba-tool ntacl get
--as-sddl" gives the following error:
ERROR: Unable to read domain SID from configuration files
Which configuration files is it referring to?
Without "--as-sddl" the command gives a correct output.
It would be nice to get the permissions in sddl format...
The same command works as expected on two AC DCs.
2020 Jan 13
0
Create OU with address details
...Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 20:17:17 +0530
> Subject: [Samba] Create OU with address details
> Hi,
>
> using below code to create ou:
>
> try:
> full_ou_dn = samdb.normalize_dn_in_domain(ou_dn)
> except Exception as e:
> raise CommandError('Invalid ou_dn "%s": %s' % (ou_dn, e))
>
> try:
> samdb.create_ou(full_ou_dn, description=description)
> except Exception as e:
> raise CommandError('Failed to create ou "%s"' % full_ou_dn, e)
>
> Using...
2019 May 07
1
samba-tool max-pwd-age error
On Tue, 7 May 2019 17:06:24 +1200
Tim Beale <timbeale at catalyst.net.nz> wrote:
> Apologies, this bug fell through the cracks and the fix never got
> backported to 4.10. I've uploaded the backport to the bug now, it just
> needs a review signoff.
>
> To recap, it was introduced as a side-effect of switching to Python 3.
> The old code never worked as intended on
2017 Mar 30
4
possible memory leak in ldb module while dbcheck on RODC
An embedded and charset-unspecified text was scrubbed...
Name: memory_profiler.txt
URL: <http://lists.samba.org/pipermail/samba/attachments/20170330/f5d10ac9/memory_profiler.txt>
2016 Apr 29
4
Samba 4.4.2 AD DC demote fails
...eferenced before assignment
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/domain.py",
line 797, in run
raise CommandError("Error while sending a DsReplicaSync for partion
%s" % str(part), e)
If I don't explicitly select a partner server, the error is:
Deactivating inbound replication
Asking partner server [someDC] to synchronize from us
Error while demoting, re-enabling inbound replication
ERROR(<...
2012 Sep 24
4
samba4: samba-tool and (unix) uids
Hello,
at my universities CS computer pools we're trying to migrate our
samba3 based NT domain to AD with samba4-rc1.
In the past we had a little script which our users could run on their
own from their linux account which created a samba user with
their own uid/gid and set their password (via smbpasswd).
We're trying to recreate this behaviour with "samba-tool user create"
2017 Mar 31
2
possible memory leak in ldb module while dbcheck on RODC
...TROL_DBCHECK]
> > - self.samdb.modify(m, controls=controls, validate=validate)
> > +# self.samdb.modify(m, controls=controls, validate=validate)
> > except Exception, err:
> > if self.in_transaction:
> > raise CommandError("%s : %s" % (msg, err))
> >
> >
> >
> > 3) My first idea was that it is python problem with starting c
> > modules, but then i found pyldb.c and py_ldb_modify function in it.
> > Commenting out the line with ldb_request memory stays on the same
> >...
2016 Apr 30
0
Samba 4.4.2 AD DC demote fails
...;/usr/local/samba/lib64/python2.7/site
> -packages/samba/netcmd/__init__.py",
> line 175, in _run
> return self.run(*args, **kwargs)
> File
> "/usr/local/samba/lib64/python2.7/site
> -packages/samba/netcmd/domain.py",
> line 797, in run
> raise CommandError("Error while sending a DsReplicaSync for
> partion
> %s" % str(part), e)
>
>
> If I don't explicitly select a partner server, the error is:
>
> Deactivating inbound replication
> Asking partner server [someDC] to synchronize from us
> Error while demotin...
2017 Jan 30
0
classic upgrade fails with 4.6-test
...the error message:
eadb = True
if use_xattrs == "yes":
eadb = False
elif use_xattrs == "auto" and use_ntvfs == False or use_ntvfs == None:
eadb = False
elif use_ntvfs == False or use_ntvfs == None:
raise CommandError("--use-xattrs=no requires --use-ntvfs (not supported for production use). "
"Please re-run with --use-xattrs omitted.")
elif use_xattrs == "auto" and not s3conf.get("posix:eadb"):
if targetdir:
Now, by m...
2017 Jan 29
0
classic upgrade fails with 4.6-test
...=None, use_ntvfs=False):
eadb = True
if use_xattrs == "yes":
eadb = False
elif use_xattrs == "auto" and use_ntvfs == False or use_ntvfs == None:
eadb = False
elif use_ntvfs == False or use_ntvfs == None:
raise CommandError("--use-xattrs=no requires --use-ntvfs (not supported for production use). "
"Please re-run with --use-xattrs omitted.")
elif use_xattrs == "auto" and not s3conf.get("posix:eadb"):
if targetdir:...
2019 Feb 08
0
[Announce] Samba 4.8.9 Available for Download
...an Ambach <ambi at samba.org>
* BUG 13199: s3:utils/smbget: Fix recursive download with empty source
directories.
o Tim Beale <timbeale at catalyst.net.nz>
* BUG 13736: s3:libsmb: cli_smb2_list() can sometimes fail initially on a
connection.
* BUG 13747: join: Throw CommandError instead of Exception for simple errors.
o Ralph Boehme <slow at samba.org>
* BUG 13688: Windows 2016 fails to restore previous version of a file from a
shadow_copy2 snapshot.
* BUG 13455: Restoring previous version of stream with vfs_shadow_copy2 fails
with NT_STATUS_OBJECT_...
2019 Feb 08
0
[Announce] Samba 4.8.9 Available for Download
...an Ambach <ambi at samba.org>
* BUG 13199: s3:utils/smbget: Fix recursive download with empty source
directories.
o Tim Beale <timbeale at catalyst.net.nz>
* BUG 13736: s3:libsmb: cli_smb2_list() can sometimes fail initially on a
connection.
* BUG 13747: join: Throw CommandError instead of Exception for simple errors.
o Ralph Boehme <slow at samba.org>
* BUG 13688: Windows 2016 fails to restore previous version of a file from a
shadow_copy2 snapshot.
* BUG 13455: Restoring previous version of stream with vfs_shadow_copy2 fails
with NT_STATUS_OBJECT_...
2017 Mar 31
0
possible memory leak in ldb module while dbcheck on RODC
...uot; %
> dsdb.DSDB_CONTROL_DBCHECK]
> - self.samdb.modify(m, controls=controls, validate=validate)
> +# self.samdb.modify(m, controls=controls, validate=validate)
> except Exception, err:
> if self.in_transaction:
> raise CommandError("%s : %s" % (msg, err))
>
>
>
> 3) My first idea was that it is python problem with starting c modules,
> but then i found pyldb.c and py_ldb_modify function in it. Commenting out
> the line with ldb_request memory stays on the same value and does not
> increase an...
2017 Jan 29
3
classic upgrade fails with 4.6-test
On Sun, Jan 29, 2017 at 4:54 PM, Rowland Penny <rpenny at samba.org> wrote:
> When you built Samba, did you use the '--with-ntvfs-fileserver' or
> '--enable-selftest' options with configure ?
>
I used '--without-ntvfs-fileserver'.
2017 Jan 30
2
classic upgrade fails with 4.6-test
On Mon, 2017-01-30 at 08:42 +0000, Rowland Penny wrote:
> On Mon, 30 Jan 2017 15:44:15 +1300
> Andrew Bartlett <abartlet at samba.org> wrote:
>
> > On Sun, 2017-01-29 at 22:43 +0000, Rowland Penny via samba wrote:
> > > On Sun, 29 Jan 2017 17:07:39 -0500
> > > Sonic <sonicsmith at gmail.com> wrote:
> > >
> > > > On Sun, Jan 29,
2019 Mar 12
0
[Announce] Samba 4.9.5 Available for Download
...gnall <douglas.bagnall at catalyst.net.nz>
* BUG 13716: samba-tool drs showrepl: Do not crash if no dnsHostName found.
o Tim Beale <timbeale at catalyst.net.nz>
* BUG 13736: s3:libsmb: cli_smb2_list() can sometimes fail initially on a
connection.
* BUG 13747: join: Throw CommandError instead of Exception for simple errors.
* BUG 13762: ldb: Avoid inefficient one-level searches.
o Ralph Boehme <slow at samba.org>
* BUG 13736: s3: libsmb: use smb2cli_conn_max_trans_size() in
cli_smb2_list().
* BUG 13776: tldap: Avoid use after free errors.
* BUG 13802: Fi...
2019 Mar 12
0
[Announce] Samba 4.9.5 Available for Download
...gnall <douglas.bagnall at catalyst.net.nz>
* BUG 13716: samba-tool drs showrepl: Do not crash if no dnsHostName found.
o Tim Beale <timbeale at catalyst.net.nz>
* BUG 13736: s3:libsmb: cli_smb2_list() can sometimes fail initially on a
connection.
* BUG 13747: join: Throw CommandError instead of Exception for simple errors.
* BUG 13762: ldb: Avoid inefficient one-level searches.
o Ralph Boehme <slow at samba.org>
* BUG 13736: s3: libsmb: use smb2cli_conn_max_trans_size() in
cli_smb2_list().
* BUG 13776: tldap: Avoid use after free errors.
* BUG 13802: Fi...
2018 Nov 13
0
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
...cts_dn
if parent_dn is None:
parent_dn = obj.dn.parent()
- expected_dn = ldb.Dn(self.samdb, "RDN=RDN,%s" % (parent_dn))
+ expected_dn = parent_dn
+ if expected_dn.add_child("RDN=RDN") == False:
+ raise CommandError("Failed to add RDN to %s" % expected_dn)
expected_dn.set_component(0, obj.dn.get_rdn_name(), name_val)
if obj.dn == deleted_objects_dn:
(However it might also blow up in our face due to ldb_dn_copy() not
filling in the ldb pointer on the DN, a different long-s...