search for: b64encode

Displaying 20 results from an estimated 53 matches for "b64encode".

2007 Apr 26
8
Win32 service - Errno::EINVAL (Invalid argument) when uploading image file
...) ruby (1.8.5) rails (1.2.3) Tested on Windows XP and Windows 2003 server Error Message: -------------- Errno::EINVAL (Invalid argument): e:/ruby/lib/ruby/1.8/base64.rb:114:in `write'' e:/ruby/lib/ruby/1.8/base64.rb:114:in `print'' e:/ruby/lib/ruby/1.8/base64.rb:114:in `b64encode'' e:/ruby/lib/ruby/1.8/base64.rb:113:in `scan'' e:/ruby/lib/ruby/1.8/base64.rb:113:in `b64encode'' /app/models/asset.rb:110:in `with_image'' /app/models/asset.rb:100:in `crop_image_size'' /vendor/rails/activerecord/lib/active_record/callba...
2019 Jun 26
2
unicode characters in samba-tool user names
...d_required=smartcard_required) File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 490, in newuser force_password_change_at_next_login_req) File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 606, in setpassword """ % (user_dn, base64.b64encode(pw).decode('utf-8')) I tested it on Debian 10, with Samba 4.9.5. I found some closed bug reports, where occured similar error, and according to that reports, the problem is python2. Samba 4.10 has full python3 support, but I don't want to compile Samba from source. Is there another way...
2012 Feb 11
1
samba 4 provision fails
...line 1757, in provision am_rodc=am_rodc, lp=lp) File "bin/python/samba/provision/__init__.py", line 1455, in provision_fill next_rid=next_rid, dc_rid=dc_rid) File "bin/python/samba/provision/__init__.py", line 1288, in fill_samdb "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) File "bin/python/samba/provision/common.py", line 52, in setup_add_ldif ldb.add_ldif(data, controls) File "bin/python/samba/__init__.py", line 221, in add_ldif self.add(msg, controls) _ldb.LdbError: (1, 'operations erro...
2011 Mar 06
1
Samba4 - Constraint violation - check_password_restrictions: the password does not meet the complexity criteria!'
...line 256, in <module> useeadb=eadb, next_rid=opts.next_rid, lp=lp) File "bin/python/samba/provision/__init__.py", line 1563, in provision next_rid=next_rid) File "bin/python/samba/provision/__init__.py", line 1262, in setup_samdb "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) File "bin/python/samba/provision/__init__.py", line 366, in setup_add_ldif ldb.add_ldif(data, controls) File "bin/python/samba/__init__.py", line 221, in add_ldif self.add(msg, controls) _ldb.LdbError: (19, '0000052D: Const...
2011 Jun 29
1
dns.keytab for Samba4 and Bind9
Hi, When provisioning a new domain, samba4 creates /usr/local/samba/private/dns.keytab. What's the best way to create that file manually, when not provisioning a new domain? My use case is how one migrates from a Windows AD+DNS to samba4+bind9. I begin by joining a new samba4 instance as a DC to an existing Windows domain (so no "/source4/setup/provision"), then getting rid of the
2016 Dec 15
4
Error on samba-tool domain provision
...ysvolacl) File "/opt/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1794, in provision_fill next_rid=next_rid, dc_rid=dc_rid) File "/opt/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1452, in fill_samdb "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) File "/opt/lib64/python2.7/site-packages/samba/provision/common.py", line 55, in setup_add_ldif ldb.add_ldif(data, controls) File "/opt/lib64/python2.7/site-packages/samba/__init__.py", line 225, in add_ldif self.add(msg, contr...
2024 Oct 27
2
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...= ('"' + pw + '"').encode('utf-16-le') > >> > >> setpw = """ > >> dn: %s > >> changetype: modify > >> replace: unicodePwd > >> unicodePwd:: %s > >> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) > >> ``` > >> > >> When doing the same, Samba returns: > >> > >> 00002035: setup_io: it's not allowed to set the NT hash > >> password directly' Code: 0x35 > >> > >> This happens both...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...isinstance(password, str): pw = password.decode('utf-8') else: pw = password pw = ('"' + pw + '"').encode('utf-16-le') setpw = """ dn: %s changetype: modify replace: unicodePwd unicodePwd:: %s """ % (user_dn, base64.b64encode(pw).decode('utf-8')) ``` When doing the same, Samba returns: 00002035: setup_io: it's not allowed to set the NT hash password directly' Code: 0x35 This happens both when 1) passing `unicodePwd` during entry creation, and 2) when modifying it for an existing entry (like `sa...
2009 Mar 27
1
UTF8 postgres args saving issue
...ain (because this is not the first time I''ve had a character encoding issue) Here''s the bulletproof hack that I added to my BdrbJobQueue ... #these accessors get around any possible character encoding issues with the database def args=(args) write_attribute(:args, Base64.b64encode(args)) end def args Base64.decode64(read_attribute(:args)) end ... Hope that helps someone. It will help anyone who has the problem referred to here http://rubyforge.org/pipermail/backgroundrb-devel/2009-March/002325.html. Note, to the best of my knowledge all my other UTF8 settings are...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...ode('utf-8') > else: > pw = password > pw = ('"' + pw + '"').encode('utf-16-le') > > setpw = """ > dn: %s > changetype: modify > replace: unicodePwd > unicodePwd:: %s > """ % (user_dn, base64.b64encode(pw).decode('utf-8')) > ``` > > When doing the same, Samba returns: > > 00002035: setup_io: it's not allowed to set the NT hash password > directly' Code: 0x35 > > This happens both when 1) passing `unicodePwd` during entry creation, > and 2) when...
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...bdkit do > something with the docstring, such as printing it in --help output, > although that's something for another patch series. > > > > + h = nbd.NBD () > > > + cfg = codecs.encode (pickle.dumps (cfg), "base64").decode() > > > > base64.b64encode() is better, avoiding unwanted newlines. > > Ah OK, I originally added strip(), but this is better. > > > > + cmd = ["nbdkit", "-v", "-s", "--exit-with-parent", > > > + "python", srcdir + "/test-python-pl...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...;> pw = password >> pw = ('"' + pw + '"').encode('utf-16-le') >> >> setpw = """ >> dn: %s >> changetype: modify >> replace: unicodePwd >> unicodePwd:: %s >> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) >> ``` >> >> When doing the same, Samba returns: >> >> 00002035: setup_io: it's not allowed to set the NT hash password >> directly' Code: 0x35 >> >> This happens both when 1) passing `unicodePwd` during ent...
2024 Oct 27
2
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...ode('utf-16-le') >>>>> >>>>> setpw = """ >>>>> dn: %s >>>>> changetype: modify >>>>> replace: unicodePwd >>>>> unicodePwd:: %s >>>>> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) >>>>> ``` >>>>> >>>>> When doing the same, Samba returns: >>>>> >>>>> 00002035: setup_io: it's not allowed to set the NT hash >>>>> password directly' Code: 0x35 &gt...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...+ pw + '"').encode('utf-16-le') >>>> >>>> setpw = """ >>>> dn: %s >>>> changetype: modify >>>> replace: unicodePwd >>>> unicodePwd:: %s >>>> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) >>>> ``` >>>> >>>> When doing the same, Samba returns: >>>> >>>> 00002035: setup_io: it's not allowed to set the NT hash >>>> password directly' Code: 0x35 >>>> >>>...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...16-le') > >> >> > >> >> setpw = """ > >> >> dn: %s > >> >> changetype: modify > >> >> replace: unicodePwd > >> >> unicodePwd:: %s > >> >> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) > >> >> ``` > >> >> > >> >> When doing the same, Samba returns: > >> >> > >> >> 00002035: setup_io: it's not allowed to set the NT hash > >> >> password directly' Code:...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...'"').encode('utf-16-le') >> >> >> >> setpw = """ >> >> dn: %s >> >> changetype: modify >> >> replace: unicodePwd >> >> unicodePwd:: %s >> >> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) >> >> ``` >> >> >> >> When doing the same, Samba returns: >> >> >> >> 00002035: setup_io: it's not allowed to set the NT hash >> >> password directly' Code: 0x35 >> >> >&g...
2017 Mar 11
4
samba 4.6.0 dc provisioning fails with exception
...cal/samba/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1787, in provision_fill next_rid=next_rid, dc_rid=dc_rid) File "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py", line 1447, in fill_samdb "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) File "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/common.py", line 55, in setup_add_ldif ldb.add_ldif(data, controls) File "/usr/local/samba/lib64/python2.7/site-packages/samba/__init__.py", line 225, in a...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...t;>>>>> >>>>>> setpw = """ >>>>>> dn: %s >>>>>> changetype: modify >>>>>> replace: unicodePwd >>>>>> unicodePwd:: %s >>>>>> """ % (user_dn, base64.b64encode(pw).decode('utf-8')) >>>>>> ``` >>>>>> >>>>>> When doing the same, Samba returns: >>>>>> >>>>>> ???? 00002035: setup_io: it's not allowed to set the NT hash >>>>>> password direct...
2015 Jun 03
0
Classicupgrade Errors on password_hash.c:2237
...7/site-packages/samba/provision/__init__.py", > line 1792, in provision_fill > next_rid=next_rid, dc_rid=dc_rid) > File > "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py", > line 1450, in fill_samdb > "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) > File > "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/common.py", > line 55, in setup_add_ldif > ldb.add_ldif(data, controls) > File "/usr/local/samba/lib64/python2.7/site-packages/samba/__init__.py&quo...
2016 Mar 11
0
Samba on Linux Fedora Provision Error
...ocal/samba/lib64/python2.7/site-packages/samba/provision/__init__.py" , line 1795, in provision_fill next_rid=next_rid, dc_rid=dc_rid) File "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py" , line 1453, in fill_samdb "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le')) File "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/common.py", line 55, in setup_add_ldif ldb.add_ldif(data, controls) File "/usr/local/samba/lib64/python2.7/site-packages/samba/__init__.py", line 225, in add_l...