search for: user_nam

Displaying 20 results from an estimated 296 matches for "user_nam".

Did you mean: user_name
2006 Jun 16
2
Problem with User Login from Agile Web Development
...hat the name is '''' instead of the name that was passed to the self.login method. I checked the code multiple times and even downloaded the files as the book had an error in another part of the model but can''t find the problem. The code in the model is: def self.login(user_name, password) hashed_password = hash_password(password || "") find(:first, :conditions => ["user_name = ? and hashed_password = ?", user_name, hashed_password]) end # Log in if the name and password (after hashing) match the database, # or if the name m...
2009 Apr 13
5
Ruby 1.8.7 + Rails 2.3.2 + TLS = Where's the documentation?
...only needed if you choose smtp delivery config.action_mailer.smtp_settings = { :address => ''smtp.gmail.com'', :enable_starttls_auto => true, :port => 587, :domain => ''digiaid.com.au'', :authentication => :login, :user_name => ''info-fGHeCWgaIIjvnOemgxGiVw@public.gmane.org'', :password => ''secret'' } -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Gro...
2006 Mar 24
2
Access to session data
...admin side to this, so there''s always authentication. Part of the info record (member) is changed_by and changed_at which I automatically want updated. Changed_at looks after itself (yay!); however changed_by doesn''t. Since I know who is accessing the table (everyone has a user_name) I''ve stored user_name in the session. I can retrieve and display this information to the input form that is collecting the info, so I know that there is session[:user_name]. Getting it into the active record is more difficult. What I have done is inside the class for member.rb I...
2007 Sep 19
1
Fwd: win32-service of win32utils
...ce{ |s| s.start_name = "name of the account" s.password = "password" # Note that I used plain text password } I was always given some kinds of error messages, which varied based on different formats of the account name being used. So with start_name = "domain_name\user_name" (using \ for escaping and have tried domain_name with either upper case or lower case), the message is "the parameter is incorrect". with start_name = "domain_name\user_name" (have tried domain_name with either upper case or lower case), the message is "the accoun...
2009 Sep 18
5
Using variables in virtual resources
Hi. I''ve defined a virtual user "kenneth", and depending on a variable in the node definiton I''d like to add the users to different groups. Consider this example: ###### Code start node "server.example.com" { $server_type = "typeA" realize User[kenneth] } @user {"kenneth": ensure => present, uid => 1000,
2007 Dec 09
2
Questions about rails 2.0
...reated_at and updated_at? And for _on ? t.datestamps? and if i want to create just one of them? t.datetime “created_at” ? # rugal on 08 Dec 20:21: i forgot another thing… about the HTTP Basic Authentication. in the code example there are both username and password set on the top of the class: USER_NAME, PASSWORD = “dhh”, “secret” authenticate_or_request_with_http_basic do |user_name, password| user_name USER_NAME && password PASSWORD end and in the method you check if are equals. with a user model everything will be something like this? authenticate_or_request_with_http_basic do |user...
2006 Sep 30
2
Dovecot accepts squirrelmail, rejects fetchmail
...sswd-file /etc/dovecot_user_file: Read 1 users Sep 30 15:05:05 fm dovecot: auth(default): client in: AUTH 1 PLAIN service=IMAPsecured +lip=::ffff:SERVER_IP_HERE rip=::ffff:CLient_IP_HERE resp=LONG_STRING_HERE VDBB Sep 30 15:05:05 fm dovecot: auth(default): passwd-file(user_name,::ffff:CLIENT_IP_HERE): unknown user Sep 30 15:05:07 fm dovecot: auth(default): client out: FAIL 1 user=user_name Sep 30 15:05:07 fm dovecot: imap-login: Aborted login: user=<user_name>, method=PLAIN, rip=::ffff:CLIENT_IP_HERE, +lip=::ffff:SERVER_IP_HERE, TLS Remember that when th...
1999 Apr 25
0
swat: bug located
...is is fine; I don't know enough about the protocols to know exactly what needs to be done where and why; but I do know that on line 111 you enter a conditional that checks "did we find an smb_pwent? no, okay, are we being called with add_user? yes, okay, let's call add_new_user passing user_name and then the big clincher (on line 121) pwd->pw_uid.... Remember that the user did not exist in the /etc/passwd file; thus pwd = null pointer. :) I'd supply a patch to fix this; but there are various ways to 'fix' this and not knowing enough about the protocol... web/swat.c: line...
1999 Apr 25
0
swat core dump and debug information
...is is fine; I don't know enough about the protocols to know exactly what needs to be done where and why; but I do know that on line 111 you enter a conditional that checks "did we find an smb_pwent? no, okay, are we being called with add_user? yes, okay, let's call add_new_user passing user_name and then the big clincher (on line 121) pwd->pw_uid.... Remember that the user did not exist in the /etc/passwd file; thus pwd = null pointer. :) I'd supply a patch to fix this; but there are various ways to 'fix' this and not knowing enough about the protocol... web/swat.c: line...
2008 Jul 02
3
attachment in mail
How to do the attachment in mail like the yahoo and gmail does? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2010 Aug 17
1
Master Login using MySQL problem - %{login_domain}
...this problem down further. The problem seems to be related to verifying the master user failing. My passdb looks like this: passdb { driver = sql args = /etc/dovecot/dovecot-domain-owner-sql.conf master = yes pass = yes } dovecot-domain-owner-sql.conf contains: user_query = SELECT user_name, domain_name FROM users WHERE user_name = '%n' AND domain_name = '%d' AND owns_domain='1' password_query = SELECT user_name, domain_name, password FROM users WHERE user_name = '%n' AND domain_name = '%d' AND owns_domain='1' AND '%d'='...
2006 Sep 26
1
fetchmail can't talk to dovecot
...fetchmail: POP3> CAPA fetchmail: POP3< +OK fetchmail: POP3< CAPA fetchmail: POP3< TOP fetchmail: POP3< UIDL fetchmail: POP3< RESP-CODES fetchmail: POP3< PIPELINING fetchmail: POP3< USER fetchmail: POP3< SASL PLAIN DIGEST-MD5 fetchmail: POP3< . fetchmail: POP3> USER user_name fetchmail: POP3< +OK fetchmail: POP3> PASS * fetchmail: POP3< -ERR Authentication failed. fetchmail: Authentication failed. fetchmail: Authorization failure on user_name at my.server fetchmail: POP3> QUIT fetchmail: POP3< +OK Logging out fetchmail: 6.3.2 querying my.server (protocol...
2005 Mar 06
3
Accessing login name from login_generator
I''m new to Rails and am modifying the ToDo tutorial app into something else. I have successfully installed authentication via login_generator and now I working toward restricting access to certain database records based on the login name. I realize that eventually, I''ll want to use the "id" field, but for now, I just want to use the user name itself. I have
2006 Apr 11
4
find(params[:id]) question
Admin Controller - def show @wizard = Wizard.find(params[:id]) end View - <td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td> URL - http://localhost:3000/admin/show/1 I want user_name (one of the columns in the database) instead of the id to show For example: http://localhost:3000/admin/show/''user_name'' Any ideas? -- Posted via http://www.ruby-forum.com/.
2014 Dec 31
1
Authenticating Virtual Users without domain
Hi, I'm trying to migrate a large number of users to a new Dovecot cluster. The existing mail system allows a user to authenticate with a bare username if they have connected to the correct local IP on the server. e.g. imap.somedomain.com = 1.1.1.1 imap.anotheromain.com = 2.2.2.2 charlie at somedomain can authnenticate as 'charlie' or 'charlie at somedomain.com' as long as
2007 Sep 21
0
win32-service of win32utils
...> > Kay > > > Date: Wed, 19 Sep 2007 20:33:30 -0600 > > From: djberg96 at gmail.com > > To: serphakay at hotmail.com > > Subject: Re: win32-service of win32utils > > > > Hi Kay, > > > > Just to be clear, you tried "domain_name\\user_name" and it didn''t work? > > > > Regards, > > > > Dan > > > > Kay wrote: > > > I''m writing some scripts to programmatically change the user > account of running a windows service. So I downloaded one of the windows > ut...
2006 Jun 04
1
Problem with instance variables
...owed the tutorial at http://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/ and decided to add an email field. The problem is that the email is not being saved on the database and I end up with two email variables: @email and email. validates_presence_of :user_name, :password, :password_confirmation, :email #:email was added by myself validates_uniqueness_of :user_name # email getter def email @email end #email setter def email=(eml) emailRE= /[\w._%-]+@[\w.-]+.[a-zA-Z]{2,4}/ if eml =~ emailRE @email = eml else # displ...
2009 Jan 04
3
Table associated problem using belongs_to
I have two tables: Table [packages] id name user_name ------------------- 1 PK1 Ray ------------------- Table [users] id name full_name ------------------- 2 Ray Ray Sun ------------------- My purpose is to find the full name when I find packages. So I modify Model Package to: class Package < ActiveRecord::Base belongs_to :user,...
2004 Mar 24
2
Request for comment, logging patch
Greetings. Attached is a patch that provides more logging information for example: Mar 19 08:34:54 secosr5 sshd[7667]: Accepted publickey of? vix at wormhole for root from 192.168.1.1 port 1256 ssh2 Mar 19 08:34:54 secosr5 sshd[7667]: executing command 'who' for? vix at wormhole as user root Mar 19 10:37:16 secosr5 sshd[7725]: Accepted publickey of? vix at wormhole for root from
2009 Feb 15
2
Execute cap deploy:migrations fails
Hi there, I am trying to deploy a rails app on dreamhost. Here is the error message that I get: fatal: ''home/USER_NAME/DOMAIN_NAME/git/APPLICATION_NAME.git'': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly /Users/USER/.gem/ruby/1.8/gems/capistrano-2.5.3/lib/capistrano/recipes/ deploy/scm/git.rb:224:in `query_revision'': Unable to resolve revision for ''maste...