search for: password_hash

Displaying 20 results from an estimated 70 matches for "password_hash".

2006 Apr 14
7
SHA2 Issues
...advance for your help with this. I am trying to implement the user authentication method from Ruby Recipes which calls for the use of SHA 2. Here is the code for the password: def password=(pass) salt = [Array.new(6){rand(256).chr}.join].pack("m").chomp self.password_salt, self.password_hash = salt, Digest::SHA256.hexdigest(pass + salt) end I open a console and can create a user but when I try to add a password it says that the constant 256 is not initialized. I have changed the Digest::SHA256 to Digest::SHA2 to no avail. I am using (on Windows - development only trust me) Ruby...
2007 May 29
0
Migration from tpop3d to dovecot - troubles galore!
...Take a case of one username, eddie, who belongs to the domain, demo.wananchi.com. 1. This query is what I am using for password_query. I do suspect it is wrong, but well, this is what it yields from the current DB: mysql> SELECT CONCAT(domain.path, '/', popbox.mbox_name), popbox.password_hash FROM popbox, domain WHERE popbox.local_part = 'eddie' AND popbox. domain_name = 'demo.wananchi.com' AND popbox.domain_name = domain.domain_name; +--------------------------------------------+---------------------------------------+ | CONCAT(domain.path, '/', popbox.mbox_name...
2015 Jun 03
0
Classicupgrade Errors on password_hash.c:2237
...ssed something. I don't have any idea what does it mean nor what causing the issues using Samba 4.2.2: .... > Setting up well known security principals > Setting up sam.ldb users and groups > ERROR(ldb): uncaught exception - operations error at > ../source4/dsdb/samdb/ldb_modules/password_hash.c:2237 > 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 1452, in run &g...
2006 Jun 09
18
Is IRB the ruby console ?
I''m running script/console but keep getting the message that irb.bat is not recognized as an internal or external command, operable program or batch file. If it means anything I am running instant rails. I can invoke irb straight forward. TIA Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL:
2019 Mar 31
3
error in samba 4.10.0 while using samba-tool domain provision
...python2.7/site-packages/samba/provision/__init__.py #2096: Looking up IPv6 addresses WARNING 2019-03-31 19:02:33,256 pid:17520 /usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py #2103: No IPv6 address will be assigned ldb_init_module() in ../../source4/dsdb/samdb/ldb_modules/password_hash.c version[1.5.4]: gpgme_check_version(1.12.0) not available, gpgme_check_version(NULL) => '1.3.2' ldb: failed to initialise module /usr/local/samba/lib/ldb/password_hash.so : Unavailable ERROR(<type 'exceptions.MemoryError'>): uncaught exception - File "/usr/local/sa...
2019 Jan 30
2
DNS failure
...-D --configfile=/etc/samba/smb.conf (code=exited, status=1/FAILURE) Main PID: 7611 (code=exited, status=1/FAILURE) Status: "daemon failed to start: Samba failed to prime database" Error: 22 (Invalid argument) Running samba dnsupgade: ldb: unable to dlopen /usr/local/samba/lib/ldb/password_hash.so : libgpgme.so.11: cannot open shared object file: No such file or directory WARNING: Module [password_hash] not found - do you need to set LDB_MODULES_PATH? module samba_dsdb initialization failed : Operations error Unable to load modules for tdb:///usr/local/samba/private/sam.ldb: (null) Traceb...
2006 Apr 21
1
Catch authentication result from a model in a controller
...e: #model----------------------------------------------------- require ''digest/sha2'' class User < ActiveRecord::Base validates_uniqueness_of :username def password=(pass) salt = [Array.new(6){rand(256).chr}.join].pack("m").chomp self.password_salt, self.password_hash = salt, Digest::SHA256.hexdigest(pass + salt) end def self.authenticate(username, password) user = User.find(:first, :conditions => [''username = ?'', username]) if user.blank? || Digest::SHA256.hexdigest(password + user.password_salt)...
2006 Jul 30
34
ruby suitable for financial apps?
hi there, I am about to embark on a mission critical financial web application, and was wondering weather ruby on rails is the best fit for this type of project. More specifically I am worried about floating point errors. Would it be more appropriate to use a more statically typed framework (.NET)? thankyou. -- Posted via http://www.ruby-forum.com/.
2012 Jul 22
4
Facter fact length?
...h/size of facts on a node? I have a need to perform one way sync of user accounts (non-Puppet managed users) on many pairs of servers. Thus far, it''s been done with scripts from primary -> backup server, and has been problematic. I''d like to create a fact that returns user:password_hash pairs, and then ensure those users are present on the backup server. I would guess the largest number of users on a node would be ~100. Any other creative solutions are appreciated, but keep in mind ldap/nis aren''t valid options. -- You received this message because you are subscrib...
2005 Apr 23
7
Validation question
Hi all, Is there a way to invoke validations at times other than save, create and update? I know that I can do this by writing my own validation checks using errors.add_[blah], but I''d like to leverage the existing validation code. What I have is two sets of fields in a record, set A and set B. Both sets must be validated on record create. However, the trouble is that after
2019 Mar 31
3
error in samba 4.10.0 while using samba-tool domain provision
...ges/samba/provision/__init__.py > #2096: Looking up IPv6 addresses WARNING 2019-03-31 19:02:33,256 > pid:17520 /usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py > #2103: No IPv6 address will be assigned ldb_init_module() > in ../../source4/dsdb/samdb/ldb_modules/password_hash.c > version[1.5.4]: gpgme_check_version(1.12.0) not available, > gpgme_check_version(NULL) => '1.3.2' ldb: failed to initialise > module /usr/local/samba/lib/ldb/password_hash.so : Unavailable > ERROR(<type 'exceptions.MemoryError'>): uncaught exception - File &...
2006 Aug 07
2
Bind variables error
...9;'m not sure why I"m getting this error ? def self.authenticate(first_name, last_name, password) user = User.find(:first, :conditions => [''first_name = ? AND last_name = ?'']) if user.blank? Digest::SHA256.hexdigest(password + user.password_salt) != user.password_hash raise "Username or password invalid" end user end end should it be user = User.find(:first, :second, :conditions ................ Or would it be something else ? Stuart
2006 Jul 27
2
Creating multiple objects from form data
I''m in the process of creating a sign up form for an online application. The form collects account info, company info, and then info for an administrative user. The method looks like this: def create @account = Account.create!(params[:account]) @company = @account.companies.create!(params[:company]) @user = @company.users.create!(params[:user]) end However, this inevitably fails
2006 Aug 07
3
wrong number of bind variables
...bles (0 for 2) in: first_name = ? AND last_name = ? def self.authenticate(first_name, last_name, password) user = User.find(:first, :conditions => [''first_name = ? AND last_name = ?'']) if user.blank? Digest::SHA256.hexdigest(password + user.password_salt) != user.password_hash raise "Username or password invalid" end user end end I''m basically copying this out of Rails Recipes so not sure where the error is. Stuart
2015 Nov 13
2
bug 11573
I am building a 64bit machine for a DC (CentOS 7) following the instructions on the Samba wiki. Installed Samba 4.3.1.tar.gz and when I try to provision the domain I get: ERROR(ldb): uncaught exception - operations error at ../source4/dsdb/samdb/ldb_modules/password_hash.c:2241 Search the string and it is bug 11573 (assigned to Andrew.) I realize that he will work on it when he gets time but, is there a work around? -- _______________________________ Bob Wooden of Donelson Trophy 615.885.2846 www.donelsontrophy.com [1] "Everyone deserves an award!!...
2017 Nov 17
3
Error in samba-tools
Finaly i install debians wheezy bin packets but i get this error when use samba-tools Setting up sam.ldb data Setting up well known security principals Setting up sam.ldb users and groups ERROR(ldb): uncaught exception - operations error at ../source4/dsdb/samdb/ldb_modules/password_hash.c:2164   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/domain.py", line 401, in run     use_rfc2307=use_rfc2307, skip_sysvolacl=False)   File &...
2019 Jan 30
11
DNS failure
....conf (code=exited, status=1/FAILURE) >  Main PID: 7611 (code=exited, status=1/FAILURE) >    Status: "daemon failed to start: Samba failed to prime database" >     Error: 22 (Invalid argument) > > Running samba dnsupgade: > ldb: unable to dlopen /usr/local/samba/lib/ldb/password_hash.so : > libgpgme.so.11: cannot open shared object file: No such file > or directory > WARNING: Module [password_hash] not found - do you need to set > LDB_MODULES_PATH? > module samba_dsdb initialization failed : Operations error > Unable to load modules for > tdb:///usr/local...
2006 Aug 07
8
Login form question
I''m using Rails Recipes to create a login form but instead of username and password, my setup is firstname, lastname, password. I seemed to be gramatically challenged and not sure how to set up the parameter list. Can anyone offer up a suggestion. The book shows the method starting like: if request.post? user = User.find(:first, :conditions => [''username = ?'' ,
2006 Aug 16
5
validation on methods that aren''t part of the database.
using the Rails Recipes book, i went through the tutorial on setting up authentication on a site. the tutorial was great, but it raises a few questions. the fields in the database are password_hash, and password_salt. the tutorial creates another method for password that takes the value it was given and hashes it and adds the 6 character salt at the end. what if i want to perform validation on the password that is entered when a user signs up? first, i want to make sure that the user ente...
2012 Jul 19
3
Problems granting privileges with puppetlabs/mysql
...but I seem to be unable to divine the correct way to do this. I''ve tried a number of different variations, but my user doesn''t get the repl_slave_priv on my user table... This is the relevant part of my manifest: ----------------- database_user { "repl_slave@%": password_hash => mysql_password('' ... ''), } database_grant { "repl_slave@%/*.*": privileges => [''repl_slave_priv''], } ---------------- The puppet run doesn''t raise an error, it says: notice: /Stage[main]/Db::Repl_user/Database_grant[repl_slave@...