Displaying 20 results from an estimated 40 matches for "b64encod".
Did you mean:
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/callb...
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 err...
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: Cons...
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, cont...
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 ar...
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-p...
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...
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&qu...
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_...
2020 May 14
2
samba-tool and --given-name or --surname format?
...uired=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'))
# samba-tool user create foobar 21asdasd// --given-name="$(echo "?ke"|openssl
base64)"
ERROR(ldb): Failed to add user 'foobar': - ldb_add: invalid dn '(null)'
What's the correct format of names?
--
Harald Hannelius | haral...
2006 Apr 05
0
Tests creating output?
Hi everyone,
I have this code in Person.rb:
def hashed_password(password)
require ''digest/sha1''
require ''base64''
new_password = Digest::SHA1.new
new_password << password
new_password = "{SHA}" << Base64.b64encode(new_password.digest).chop
end
And here''s my test:
def test_hashed_passwords_should_be_LDAP_compliant
new_hashed_password = ''{SHA}blahblahblah=''
new_password = people(:staff1_person).hashed_password(''password'')
assert_equal new_password...
2019 Nov 23
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...s. We could probably also have nbdkit 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-plugin.py",
> &g...
2016 Dec 15
0
Error on samba-tool domain provision
...pt/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
&...
2017 Mar 11
0
samba 4.6.0 dc provisioning fails with exception
...ite-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...
2019 Nov 22
3
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...et" % __file__)
> + sys.exit (1)
> +
> +def test (cfg):
test will fool testing frameworks, expecting that this is a test function.
Maybe call this handle()? or case()?
> + h = nbd.NBD ()
> + cfg = codecs.encode (pickle.dumps (cfg), "base64").decode()
base64.b64encode() is better, avoiding unwanted newlines.
> + cmd = ["nbdkit", "-v", "-s", "--exit-with-parent",
> + "python", srcdir + "/test-python-plugin.py",
> + "cfg=" + cfg]
> + h.connect_command (cmd...
2011 Aug 07
1
SQL passdb lookups not working
Hello everyone,
I'm trying to make dovecot do user authentication against a SQL
database. The passwords (managed by Django) are stored as salted SHA1
encoded in hex. I monkey patched Django's password method so that the
password hash is made with <password><salt> (Django does
<salt><password>, the patched method was verified to return same value
as
2015 Jun 30
3
how is the sha fingerprint generated?
% cat ext_rsa.pub| sed -r 's/.*(AAAA[^ ]+).*/\1/' | sha256sum
~/.ssh swlap1
d4bf8b06f2d9d9af7a11583a5367205ed310a84f0dee68d062e2ddca1e85c3ff -
% ssh-keygen -lf ext_rsa.pub
~/.ssh swlap1
8192 SHA256:FgrfxmdjTM/j4wwRa7nVdPSUaJdqHYMJtJ6aciPl9ug swilson at swlap1 (RSA)
Why do those differ and how would i generate the equivalent (mainly
just curious)? I've also tried base64 and a
2019 Nov 24
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...he 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", srcd...