search for: get_loadparm

Displaying 18 results from an estimated 18 matches for "get_loadparm".

2019 Feb 25
3
samba-tool provision error
...ught exception - Unable to load default file   File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run     return self.run(*args, **kwargs)   File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 319, in run     lp = sambaopts.get_loadparm()   File "/usr/lib64/python2.7/site-packages/samba/getopt.py", line 92, in get_loadparm     self._lp.load_default() My system is : openSuSE Leap 15 What can I do? T.I.A. -- Ing. Jesús Reyes Piedra Admin Red Neurodesarrollo,Cárdenas La caja decía:"Requiere windows 95 o supe...
2019 Apr 02
2
samba 4.10.0 - problem with samba-tool domain provision
...nable to load default file File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/__init__.py", line 184, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/domain.py", line 371, in run lp = sambaopts.get_loadparm() File "/usr/local/samba/lib64/python3.6/site-packages/samba/getopt.py", line 91, in get_loadparm self._lp.load_default() [root at geo22 ~]# I would be thankful for any suggestion on what might be wrong in my setup. Best regards, Andreas Habel -- Andreas Habel Petroleum engineer...
2014 Jul 15
1
samba-tool crashes if include = /patch/to/%U.conf in smb.conf
...o ERROR(runtime): uncaught exception - Unable to load default file File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line 261, in run lp = sambaopts.get_loadparm() File "/usr/lib/python2.7/dist-packages/samba/getopt.py", line 92, in get_loadparm self._lp.load_default() In fact it crashes for any include with any variable substitution (%U, %g, %a?). Any ideas ? Thanks, Quentin Gibeaux
2019 Feb 25
0
samba-tool provision error
...ught exception - Unable to load default file   File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run     return self.run(*args, **kwargs)   File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 319, in run     lp = sambaopts.get_loadparm()   File "/usr/lib64/python2.7/site-packages/samba/getopt.py", line 92, in get_loadparm     self._lp.load_default() My system is : openSuSE Leap 15 What can I do? T.I.A. -- Ing. Jesús Reyes Piedra Admin Red Neurodesarrollo,Cárdenas La caja decía:"Requiere windows 95 o supe...
2019 Feb 25
0
samba-tool provision error
...to load default file >   File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", > line 176, in _run >     return self.run(*args, **kwargs) >   File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", > line 319, in run >     lp = sambaopts.get_loadparm() >   File "/usr/lib64/python2.7/site-packages/samba/getopt.py", line 92, > in get_loadparm >     self._lp.load_default() > > > My system is : openSuSE Leap 15 > > What can I do? > > > T.I.A. >
2019 Apr 02
0
samba 4.10.0 - problem with samba-tool domain provision
..."/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/_ > _init__.py", line 184, in _run > return self.run(*args, **kwargs) > File > "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/d > omain.py", line 371, in run > lp = sambaopts.get_loadparm() > File > "/usr/local/samba/lib64/python3.6/site-packages/samba/getopt.p > y", line 91, in get_loadparm > self._lp.load_default() > [root at geo22 ~]# > > I would be thankful for any suggestion on what might be wrong > in my setup. > > Best regards...
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...sambaopts = options.SambaOptions(parser) > parser.add_option_group(sambaopts) > parser.add_option_group(options.VersionOptions(parser)) > credopts = options.CredentialsOptions(parser) > parser.add_option_group(credopts) > > opts = parser.parse_args()[0] > > lp = sambaopts.get_loadparm() > smbconf = lp.configfile > creds = credopts.get_credentials(lp) > creds.set_kerberos_state(DONT_USE_KERBEROS) > > > if __name__ == '__main__': > paths = get_paths(param, smbconf=smbconf) > session = system_session() > > ldbs = get_ldbs(paths,...
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...er) > > parser.add_option_group(sambaopts) > > parser.add_option_group(options.VersionOptions(parser)) > > credopts = options.CredentialsOptions(parser) > > parser.add_option_group(credopts) > > > > opts = parser.parse_args()[0] > > > > lp = sambaopts.get_loadparm() > > smbconf = lp.configfile > > creds = credopts.get_credentials(lp) > > creds.set_kerberos_state(DONT_USE_KERBEROS) > > > > > > if __name__ == '__main__': > > paths = get_paths(param, smbconf=smbconf) > > session = system_session()...
2019 Apr 06
2
"00002020: Operation unavailable without authentication" using python-ldap
Hello, I'm writing in regards to this issue I opened on GitHub: https://github.com/python-ldap/python-ldap/issues/275 I am able to successfully use ldapsearch to query my Samba 4.9.4-Debian DC: ldapsearch -LLL -Y GSSAPI -H ldap://samba-dc.ad.example.com -b "dc=ad,dc=example,dc=com" "(objectClass=user)" "sAMAccountName" However, when I try to use python-ldap I
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...Parser("chgtdcpass [options]") sambaopts = options.SambaOptions(parser) parser.add_option_group(sambaopts) parser.add_option_group(options.VersionOptions(parser)) credopts = options.CredentialsOptions(parser) parser.add_option_group(credopts) opts = parser.parse_args()[0] lp = sambaopts.get_loadparm() smbconf = lp.configfile creds = credopts.get_credentials(lp) creds.set_kerberos_state(DONT_USE_KERBEROS) if __name__ == '__main__': paths = get_paths(param, smbconf=smbconf) session = system_session() ldbs = get_ldbs(paths, creds, session, lp) ldbs.startTransactions()...
2019 Apr 06
0
"00002020: Operation unavailable without authentication" using python-ldap
...takes_optiongroups = { "sambaopts": options.SambaOptions, "credopts": options.CredentialsOptions, "versionopts": options.VersionOptions, } def run(self, sambaopts=None, credopts=None, versionopts=None, H=None): lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, fallback_machine=True) samdb = SamDB(url=H, session_info=system_session(), credentials=creds, lp=lp) domain_dn = samdb.domain_dn() res = samdb.search(domain_dn, scope=ldb.SCOPE_SUBTREE,...
2024 Jul 10
0
DomainDnsZones and ForestDnsZones problem transfer
...ring fsmo roles I encountered a problem transferring the DomainDnsZones and ForestDnzZones roles in samba 4.20.2, I went to the samba source code in the fsmo.py file and started studying the code snippet in the Transfer_dns_role() function if master_dns_name != new_dns_name: lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, Fallback_machine=True) samdb = SamDB(url="ldap://%s" % (master_dns_name), session_info=system_session(), credentials=credits, lp=lp) and then I discovered a problem in the line SamDB(url=&qu...
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:
2024 Jun 30
1
Looking for Python docs/examples to modify DNS via keytab
On Sun, 30 Jun 2024 00:22:57 -0700 christian baltini <christian.baltini at gmail.com> wrote: > > This is the output I get: > > (venv) root at ubu1:~/py_krb# samba-tool dns zonelist localhost > --use-krb5-ccache=/tmp/krb5cc_0 Failed to bind to uuid > 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for >
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...ion_group(sambaopts) >> > parser.add_option_group(options.VersionOptions(parser)) >> > credopts = options.CredentialsOptions(parser) >> > parser.add_option_group(credopts) >> > >> > opts = parser.parse_args()[0] >> > >> > lp = sambaopts.get_loadparm() >> > smbconf = lp.configfile >> > creds = credopts.get_credentials(lp) >> > creds.set_kerberos_state(DONT_USE_KERBEROS) >> > >> > >> > if __name__ == '__main__': >> > paths = get_paths(param, smbconf=smbconf) >> >...
2024 Jun 29
1
Looking for Python docs/examples to modify DNS via keytab
On 6/28/24 10:07 PM, christian baltini via samba wrote: > Hello all, > > I am looking to rewrite the shell script here (https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records) in Python. > > Is anyone aware of any resources (docs, existing code, etc.) that may be useful in doing so? I?m not finding any introductory docs or simple code examples that show things like
2024 Jun 05
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
Add a 'private dir' to your smb.conf matching where your Samba packages are putting 'private'. Andrew Bartlett On Wed, 2024-06-05 at 17:13 +0300, Omnis ludis - games via samba wrote: > I tried to run with this command, but I get an error./chgtdcpass -- > configfile=/opt/samba/etc/smb.confmodule samba_dsdb initialization > failed : No such objectUnable to load modules for
2019 Apr 07
2
"00002020: Operation unavailable without authentication" using python-ldap
..."sambaopts": options.SambaOptions, > "credopts": options.CredentialsOptions, > "versionopts": options.VersionOptions, > } > > def run(self, sambaopts=None, credopts=None, versionopts=None, H=None): > lp = sambaopts.get_loadparm() > creds = credopts.get_credentials(lp, fallback_machine=True) > > samdb = SamDB(url=H, session_info=system_session(), > credentials=creds, lp=lp) > > domain_dn = samdb.domain_dn() > res = samdb.search(domain_dn, scope=ldb....