search for: new_password

Displaying 20 results from an estimated 26 matches for "new_password".

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=''...
2006 Apr 14
1
Validating Existing Models
I''ve got a user object which has quite a few attributes mapped to the database. As of right now I''ve got some validations in the model like: validates_presence_of :password, :message => "You must specify a valid password." validates_confirmation_of :password, :message => "Password doesn''t match the confirmation." validates_presence_of
2015 May 06
2
Using ldap to check last password modification date
Thanks Rowland. That makes sense :-) BTW, Is the following code enough to change the password with python-ldap? con.sasl_interactive_bind_s("", sasl_auth) mod_attrs = [ (ldap.MOD_REPLACE, 'unicodePwd', new_password), (ldap.MOD_REPLACE, 'unicodePwd', new_password) ] con.modify_s('CN=%s,CN=Users,DC=lxc,DC=com % username, mod_attrs) Thanks! Regards, Norberto 2015-05-06 4:32 GMT-03:00 Rowland Penny <rowlandpenny at googlemail.com>: > On 05/05/15 20:31, ?? wrote: >> >> He...
2006 Feb 20
3
file_column and login_engine incompatibilities
Hi, has anyone come across any incompatibilities between file_column and login_engine? I''ve been having strange issues where a User model with file_column in it is failing to save the images properly. Everything uploads to the tmp dir fine, but then it never gets copied to the proper permanent location. No errors - everything happens fine except for that final part. I have
2010 Aug 17
2
[Form] Method POST & PUT problem
...new @user = @current_user end ------------------------------------------- View: ------------------------------------- <% semantic_form_for @user, :url => profile_reset_password_url do |form| -%> <% form.inputs -%> <%= form.input :password -%> <%= form.input :new_password -%> <%= form.input :new_password_confirmation -%> <% end -%> <%= form.buttons %> <% end -%> ------------------------------------------- Routes: ----------------------------------- map.namespace :profile do |profile| profile.resource :reset_password, :only...
2004 Jun 10
1
Net Command
Howdy: Does any have any experience changing a user password on a Active Directory domain with the Samba 3 net command? Here is my workstation setup: <-> Red Hat Linux Enterprise AS 2.0 <-> Samba Version 3.0.2a I am trying to script the event, but I keep getting a password prompt. I have been having problems expecting around the prompt too. hmmm. /usr/local/samba/bin/net -w
2003 Aug 04
14
Mysql CDR
hello all, I am using the msql cdr module to store cdr in db, I realised that it does't capture the start and end time af a particular call record. Therefore I dive into the source code to add the start and end time into the query (add something like cdr->start, cdr->end), but end up getting segfault. the original version of cdr_mysql.so works fine but I need the start time and end
2015 May 05
2
Using ldap to check last password modification date
Hello, For a portal I'm working on, I need to know if changing the unicodePwd attr with LDAP also updates pwdLastSet (so the account doesn't get locked). It seems the answer is yes, but the value I get from pwdLastSet is somewhat weird: pwdLastSet: 130753269490000000 That is Wed, 08 Jun 2011 11:31:34 GMT Why? Is that epoch or something else? Is there anything else I need to update when
2015 May 07
0
Using ldap to check last password modification date
On 06/05/15 15:59, ?? wrote: > Thanks Rowland. That makes sense :-) > > BTW, Is the following code enough to change the password with python-ldap? > > con.sasl_interactive_bind_s("", sasl_auth) > mod_attrs = [ > (ldap.MOD_REPLACE, 'unicodePwd', new_password), > (ldap.MOD_REPLACE, 'unicodePwd', new_password) > ] > con.modify_s('CN=%s,CN=Users,DC=lxc,DC=com % username, mod_attrs) > > > Thanks! > > Regards, > Norberto > > > > 2015-05-06 4:32 GMT-03:00 Rowland Penny <rowlandpenny at googlemail.com...
2006 Jan 06
2
Re: Some advice on DB modeling
...y => ''friend_id'' has_and_belongs_to_many :friends_of, :join_table => ''friends'', :class_name => ''User'', :foreign_key => ''user_id'', :association_foreign_key => ''friend_id'' attr_accessor :new_password attr_accessor :friends attr_accessor :friends_of ... end But when I use user.friends or user.friends_of they always return nil even after I entered some data in the db manually. There are no errors in the logfile... Any ideas? thanks Frank
2001 Mar 10
2
Using smbpasswd in scripts!
Hello! I need to use smbpasswd in scripts. I want to changing smbpassword in script. There is an option -s in smbpasswd so I tried: echo new_password | smbpasswd -s username but without success.... If someone knows how change password - please e-mail..... Best Regards -- Bartlomiej Solarz-Niesluchowski, Administrator WSISiZ e-mail: B.Solarz-Niesluchowski@wsisiz.edu.pl 01-447 Warszawa, ul. Newelska 6, pokoj 404, pon.-pt. 8-16 tel. 836-92-53 -...
2010 Jan 18
3
The role of self and :: within a method of a model
...located in a method inside a model like in the code below. Also in the code below, you see :: located in the method. Isn''t that used for modules and namespaces? If so, why is it located in the method here. These two things are preventing me from comprehending the below code: def hash_new_password # First reset the salt to a new random string. You could choose a # longer string here but for a salt, 8 bytes of randomness is probably # fine. Note this uses SecureRandom which will use your platform''s secure # random number generator. self.salt = ActiveSu...
2008 Aug 26
5
undefined method
I''m trying to pass a method to another object/method as a variable. Example one, login 1 works just fine. def login1 @driver.Login(username, password) end However, if I try to pass "Login" to the driver as an argument (example two Login 2), I get "undefined method `command_string'' for #<SOAP::RPC::Driver:0x316dc28>" "Login" is a legit
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
...ccount registration and continue with the login.'' else flash[:notice] << '' Please log in.'' end redirect_to :action => ''login'' end Initially, I also had undefined method errors for password and new_password for #<User...>, so I added these fields to the user table. It seems like the LoginEngine was not correctly installed or at least the migration 001_initial_schema was incomplete. I can work around with that, however, this error truly seems like a missing method. This is my first experience...
2006 Apr 04
3
model validates twice in tests, produces duplicate errors
...sword => ''asecurepassword'', :password_confirmation => ''asecurepassword'', :display_name => ''invalid zip'', :email => ''invalid...@myapp.com'', :zip_code => ''265'' ) @u.new_password = true assert !...@u.save assert_equal 1, @u.errors.count assert_equal "is the wrong length (should be 5 characters)", u.errors.on(:zip_code) end the test result: 1) Failure: test_create_user_with_invalid_zip_code(UserTest) [test/unit/user_test.rb:112]: <1> expec...
2006 Apr 04
2
HABTM
...--------------------------=20= -------------------------------------- id user_id = id name item_id name ... = password = ...... My Code: class Item < ActiveRecord::Base has_and_belongs_to_many :users end class User < ActiveRecord::Base attr_accessor :new_password has_and_belongs_to_many :items [........] end items/list.rhtml: [....] <td><%=3D link_to ''=C3'', :action =3D> ''select'', :id =3D> item %></td> [....] class ItemsController < ApplicationController [....] def select @user =3D...
2006 Apr 20
5
Integrating with Legacy Databases
This seems like it must have been asked before - I really _did_ try to find it in the archives, so my apologies if it''s already out there. Utilizing ActiveRecord, I would like to specify a prefix for the column names in my table. For example, in ''Recipe 16 Integrating with Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal with integration with a
2006 Feb 14
6
Creating a String of Random Characters and Numbers
I want to create a random string of length n that is made up of characters and integers. Is there a function in rails or ruby that allows me to do this? Thank you my friend :-). John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering information on the net
2005 Aug 26
2
Salted Login Hash Woes
...when :get @user = User.new(@params[''user'']) else @params[''user''].delete(''form'') @user = User.new(@params[''user'']) begin User.transaction(@user) do @user.new_password = true if @user.save key = @user.generate_security_token url = url_for(:action => ''welcome'') url += "?user[id]=#{@user.id}&key=#{key}" UserNotify.deliver_signup(@user, @params[''user''][...
2006 Aug 09
0
admin.create error in devel. console
...n_expiry"=>nil, "credits"=>nil, "verified"=>0, "logged_in_at"=>nil, "salted_password"=>"", "created_at"=>Wed Aug 09 01:16:05 EDT 2006, "email"=>"zack@xxxxxx.com"}, @agreement="1", @new_password=false, @new_record=false> any ideas as to why im getting this. this is an app that was built for us and the developer is on vacation, im a network engineer, not a programmer, so if more info than this is needed to debug please let me know. thanks in advance, any help here is grealy appreciat...