Displaying 20 results from an estimated 800 matches similar to: "How to configure auth_userdb and auth_passwd?"
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user
model:
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token"
There is an existing (cleartext) password field, but authlogic doesn''t
seem to be reading that on existing accounts. As a result, all logins
for existing accounts fail.
How can I get
2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
The code that comes with the plugin uses a method that looks like this:
def password_required?
crypted_password.blank? or not password.blank?
end
with validations that look like this:
validates_presence_of :password, :if =>
:password_required?
validates_presence_of :password_confirmation, :if =>
:password_required?
validates_length_of
2007 Nov 17
18
Syntax Problem
I admit I am stuck. I am converting a legacy php site to ROR. The old
site uses MD5, a security flaw waiting to happen. I upgraded to AAA
and am adding code in the session_controller.rb file to see if
crypted_password is blank. If it is, crypt and check the password
against the old md5 version and write it in the new crypted_password
field.
Here is my code add on before the logged_in?:
def
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am
somewhat new to RSpec so this might be a trivial problem.
Basically I can tell that the fixtures are not getting loaded. All 100
tests fail with a similar error.
But I don''t know why. Below is the code, with my narrative with ***
before it... Can you see anything or give me a clue where to look. So
far I am coming up
2005 Jan 13
1
Dovecot create mbox files. But why?
Hi there,
my dovecot is now running normaly, but there is a small problem....
We want to to use the maildir format at the mailstorage. But the imap
part of dovecot creates the for mbox specific files, but why?
I created a passwd-file for a testuser. At this tme, there is only on line:
test2 at dev2.abc.de:ujAN28k8.5zV2:99:99:*:*:*:*
in dovecot.conf are these interesting lines:
2010 Feb 04
2
Encrypt a user password using "Authlogic"
Hi,
I have a csv file which have the user detail. I want to migrate this
information into the "users" table.
My application use "Authlogic" for user aunthentication so I have to
encrypt the password during migration. I have written the script which
is reading the csv file and adds the record into "users" table, it is
working fine. But I am not able to encrypt the
2008 Jun 29
3
Working around/with Restful Authentication
I''m using Restful Authentication, and the code to create a user is
pretty straight forward - there is a before_save action and a
before_create action:
before_save :encrypt_password
before_create :make_activation_code
But for some reason when I try to create a user programmatically in
the controller like this:
User.new(:email =>
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and
acts_as_statemachine
In the create method for a user there is the following code generated
by the restful_authentication template
@user.regster! if user.valid?
And this will save and the user record if it is valid. I understand
that the statemachine will then change the state from passive to
pending. It will guard
2008 Sep 12
1
restful_authentication rspec failures "Mysql::Error: Incorrect datetime value:"
I am getting 193 failures that all have "Mysql::Error: Incorrect
datetime value:"
how do i fix this??? i am new to rspec and restful_auth, so if i am
doing something wrong, let me know!!!
windows xp
rails 2.1.1
rails testproject
cd testproject
# create my databases and edit database.yml
git init
git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins/
rspec
git
2008 Aug 01
0
Help with Access Control
Hi,
I am following the excellent tutorial http://www.railsforum.com/viewtopic.php?id=14216
(post 5) on how to implement an access control feature i.e. only a
friend is allowed to view a profile of a particular member. I am not
using the restful authentication plugin as the author is using to
implement the authentication feature (post 1) in the tutorial. All I
am interested in is the post 5
2008 Jun 20
15
before_save model callback rspec testing
hi all,
i''m learning rspec and i can''t figure out how to test if a callback is
executed in a model.
my model code is:
class User < ActiveRecord::Base
before_save :encrypt_password
...
def encrypt(password)
self.class.encrypt(password, salt)
end
thanks a lot,
cs.
--
Posted via http://www.ruby-forum.com/.
2008 Feb 07
1
ActiveRecord 'find_or_initialize_by' dynamic finder bug? Ignoring conditions.
Hello all,
I just ran into something that I think is a bug, and I would like to
confirm with the core team whether this is expected/desired behavior
or if this is a bug that I should file and develop failing tests for
(I doubt I have the active record method_missing fu to actually patch
it).
Test Scenario:
I would like to find or initialize a new user and base the find on the
users email
2007 Jul 18
3
Help. Acts_as_Authenticated plugin stops working for me?
Hi,
I successfully installed AAA couple days before, and i managed to
register a uer with it, with no user activation.
but for some strange reason, it stops working for the signup method,
with i go to the signup page, press submit, it shows an error page,
what''s wrong? here''s the error page.
undefined method `activation_code'' for #<User:0x3b6dbd
2004 Jul 22
2
Authentification with PostgreSQL
Hi all,
I found Dag Wieers' Fedora Core 2 rpm on
http://dag.wieers.com/packages/dovecot/ and installed it. Now
dovecot-auth isn't complaining anymore about an unknown userdb type
but I can't get authentication working.
/etc/dovecot.conf
(...)
# Authentication process name.
auth = default
# plain digest-md5 anonymous
auth_mechanisms = plain
auth_userdb = pgsql
2006 Apr 08
3
LDAP authentication via PAM
I've configured dovecot to authenticate against a Fedora Directory
Server. The mail server on which dovecot is installed has the
nss_ldap and pam_ldap packages installed, and /etc/dovecot.conf has the
following two lines:
auth_userdb = ldap /etc/dovecot-ldap.conf
auth_passdb = pam
In other words, I want dovecot to use LDAP to access the user database,
but PAM for authentication. This part is
2003 Mar 02
1
ldap config
Hi,
how do I setup the config to use an ldap server for authentification ?
I tried :
auth_userdb = ldap:/usr/local/dovecot/etc/dovecot-ldap.conf
auth_userdb = ldap:/usr/local/dovecot/etc/
auth_userdb = usr/local/dovecot/etc/dovecot-ldap.conf
however I got an error. What is the correct syntax for the ldap config ?
Regards,
Stefan Sels
2005 Oct 21
2
dual auth with real users and virtual users
Hi, im using 0.99 stable in RPM form,
Im using this for postfix+dovecot+real unix users, now i tried to enable
virtual support with this:
protocols = imap pop3
ssl_disable = yes
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.info
login_user = dovecot
mail_extra_groups = mail
auth = default
auth_mechanisms = plain
auth_passdb = pam
auth_userdb = passwd
auth_userdb =
2005 Aug 27
2
Authenticate user thru PAM
my mailsystem is using postfix and virtual mailbox which stored in mysql db.
SMTP AUTH is using PAM, pam-mysql to authenticate against a mysql db.
I installed dovecot 0.99-14. In the dovecot example config file
it mentioned that auth_passdb can check against thru PAM but auth_userdb didn't
Does it mean that auth_userdb should use other means e.g. /etc/passwd,
shadow, vpopmail, etc and in my
2006 Apr 22
7
Proper Database Design For A Newbie
Hi all,
I am starting out learning Ruby on Rails (coming from a PHP background)
and I have a question about proper database design.
Let me give you a quick example of what I want to do:
Database:
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`login` varchar(40) default NULL,
`email` varchar(100) default NULL,
`crypted_password` varchar(40) default NULL,
`salt`
2012 Jun 11
0
Using AuthLogic
Hello, I''m trying to use the authlogic to make my login in my app.
The problem is when I change my user model.
user model:
class User < ActiveRecord::Base
attr_accessible :crypted_password, :email, :password_salt,
:persistence_token, :username
acts_as_authentic
end
create_users migration
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|