Displaying 20 results from an estimated 35794 matches for "account".
2009 Nov 19
0
migrating NT4 PDC to samba3. netrpc vampire errors
...in/groupadd
'SophosDomainPowerUser'' gave 3
Creating unix group: 'SophosDomainAdministrator'
groupadd: 'SophosDomainAdministrator' is not a valid group name
smb_create_group: Running the command `/usr/sbin/groupadd
'SophosDomainAdministrator'' gave 3
Creating account: Administrator
useradd: invalid user name 'Administrator'
fetch_account: Running the command `/usr/sbin/useradd -m 'Administrator''
gave 3
Could not create posix account info for 'Administrator'
Creating account: Guest
useradd: invalid user name 'Guest'
fetch_acc...
2006 Jan 05
3
has_one :dependent => true question
Hello,
I have two classes that are self explanatory and are listed below.
class User < ActiveRecord::Base
belongs_to :account
end
class Account < ActiveRecord::Base
has_one :account_owner, { :dependent => true, :class_name => "User",
:conditions => "is_account_owner = 1" }
has_many :users
end
In the signup controller when an account is created one user is created as
well that is the a...
2003 Mar 09
3
not able to add machines on FreeBSD 4.7
I'm setting up a new install of samba 2.2.7a on FreeBSD 4.7
Here's a little run-through of what I have done.
I added a machine account in /etc/group as follows:
machines:*:201
I have added all of my machine accounts in to /etc/passwd as
follows:
sclepy$:*:201:201::0:0:Machine account for Sclepy:/dev/null:false
lexus$:*:202:201::0:0:Machine account for Lexus:/dev/null:false
kellogg$:*:203:201::0:0...
2008 Jan 28
2
Could this controller test be made simpler?
...have to stub some methods within the model that
allow the error messages to be displayed properly.
This small test turns into a lot of code. So I am wondering if there is
something that I am missing to make this much simpler. Things did start
simple, in the stubbing of the new method within the Account class and
then the save method within the @account model. Then I get errors
reminding me to stub out the users method for the account model, then
the build method, etc
I have looked at the generated scaffold code and it is simpler, but it
seems that the relationship made between the two models is...
2005 Dec 17
2
Subfolders in Rails applications (newbie)
...a week playing with Rails, I have built a couple of apps but
am still unable to get one thing to work: subfolders. (I am probably
using the wrong term here, but oh well...)
I would like my rails application to have controllers logically grouped
into folders. So for instance:
http://domain.com/accounting/accounts
http://domain.com/hr/employees
Here''s how I have tried to accomplish this:
1. Create folder ''accounting'' in /app/controllers/
2. In /app/controllers/accounting, create ''accounts_controller.rb''
class AccountsController < ApplicationCon...
2013 Jun 18
3
How to add a client to a domain?
Hello
I have recently "inherited" a small domain consisting of a linux server
running samba 3.6 and one client computer running Windows 7.
I want to add another client (also running Windows 7) to the domain.
Previously adding clients has been done by manually creating a linux
machine account and samba account.
I have created the accounts for the new client but when I try to configure
it to be part of the domain a window pops up prompting for an account and
password "that can join the domain". I don't really know what to enter
here and I am unable to add the machine.
Quo...
2007 Jun 13
6
ActiveRecord query using association
Hello all,
I apologize if the answer to this question is going to be rudimentary,
but I am thus far stymied by the information I have found on the web.
This seems like it should be simple, but I haven''t really found an
example of how to do this yet.
I have a model called Account which has a belongs_to reference to
another model, User, as below:
class Account < ActiveRecord::Base
belongs_to :primary_user, :class_name =>
"User", :foreign_key => "primary_user"
end
The User model has a property "last_name" and the Account mod...
2006 Apr 11
5
Reading MySQL rows
...-----+
| 1 | 0 | |
+----+-------+------------+
def count(number)
puts "count() reached!\n user is #{@username} " # this works
userdata = User.find_by_sql("select id, count, company from users
where name = ''@username'' ")
account = userdata[0]
puts "account-id: #{@account.id}" # empty
puts "the name of the company is: #{@account.company}, count #
{@account.count}\n" # empty
end
How do I collect the content of the id, count and company field to
variables?
I?m very grateful for all help I...
2007 Dec 04
1
spec''ing shared controller methods
...dividual controllers
that use these methods, not necessarily all the edge cases and I''d
like to isolate the examples.
This is the approach I''m taking (thanks to bryanl for suggestions and
http://pastie.caboo.se/123626). WDYT?
This example is a before_filter that finds the Account specified in
params[:account_id], which may be used by any number of other
controllers in my app. As you can see, the filter is still getting
spec''d and has pending examples.
## application.rb
class ApplicationController < ActionController::Base
...
def find_account
@...
2007 Jan 04
6
after_update attributes problem
...r_update callback on rails... As
far as I can tell, when I define a after_update callback on a model,
the attributes of the object have the same values that they had
*before* Base.save was called. I''m probably wrong so here''s the code:
UNIT TEST:
def test_register_item_adjusts_account_balance
account = accounts(:cams_credit_card)
transaction = RegisterItem.new(:date => ''2006-10-31'',
:description => ''Chinese food'',
:amount => ''-13.44'')
t...
2008 Jan 30
2
Stubbing controller methods vs model methods
...forum I figured it out. The thing is I don''t
understand why the change that was made works and why what existed
before didn''t.
Here is the initial post when I had the error:
----------------------------------
In the controllers/application.rb file
I have a method that finds the account based on the subdomain. This
method is stubbed out for the tests.
def find_account
@account = Account.for(request.host.split(".").first) #TODO: find
out why request.subdomains returns []
end
In my controller tests I would like to stub this method. So I created a
method within the...
2020 Feb 14
4
Setting uidNumber for machine accounts
Hello,
A user of my "adman" utility recently opened this issue [1]: "Add
support for setting uidNumber for machine account"
I was aware that computer accounts were also users in AD, but I hadn't
considered assigning a uidNumber to them. It makes sense that winbind
(in idmap="ad" mode) would not "see" the accounts with a uidNumber.
Naturally, groups of which the computer accounts are member...
2015 Jul 03
2
Samba4 roaming profiles & ownership of profile.V2 folders
I've got roaming profiles for one account on a Debian/Jessie AD DC
server but I can't get them to work for the other accounts. The
differences are that the one account is also a Linux account in the AD
DC and is in the Domain Admins group. The other accounts were created
with ADUC on a Windows 7 machine logged in as the Domain Admi...
2002 Feb 27
5
Machine trust account reqd in 2.2.3a?
Greetings,
I was reading over the documentation online for using SAMBA as a PDC, and
in the section about creating machine trust accounts is talks about having
to add machine accounts to the /etc/passwd file. The text also mentions
that future versions of SAMBA will remove this requirement:
"Because Samba requires machine accounts to possess a UNIX uid from which
an Windows NT SID can be generated, all of these accounts mu...
2007 Sep 12
1
Clearing account lockout
I recently am migrating my PDC from NT4 to Samba 3.025. Apparently due to a
mismatch between the capitalization of the Windows account and the Unix
account (Administrator vs administrator) I managed to lock the account
before catching the discrepenacy.
# pdbedit -v administrator
Unix username: Administrator
NT username: Administrator
Account Flags: [ULX
Bad password count : 5
I reset the bad passwo...
2016 Oct 12
2
Samba-tool password expiration and service accounts
Initially I had set password expiration to be 6 months using samba-tool, and
used ADUC to tick the "password never expires" box on specific service
accounts that I wanted to keep with the same password. What I found was that
even with this box checked, the account's passwords did expire after 6
months.
So it seems that the password settings configured by samba-tool apply to all
accounts on the domain, including the ones I intended to use as se...
2003 May 19
1
permission to subdirectory
...e new and just install RH 8.0 with samba 2.2.7-5.8.0 as our local file
server on a workgroup basis.
We are trying to create subdirectory with permission but cannot figure out the
right way. We have search the samba list for solution with no luck.
We with to create the following scenario for our account department,
Directory personnel
---------------------------------------------------------------------
/home/account account manager
/home/account/folder1 account executive 1
/home/account/folder2 account executive 2
/home/account/folder3 account executive 3...
2008 Jun 28
19
Stopping example execution?
Hello, I''m wondering If I am missing something here when creating an example that sets an expecation at the top or beginning of an action but requires you to stub / mock everything that follows.
Example:
I want to test that a certain controller is running a before_filter...thats easy:
- controller.should_receive(:require_user)
- do_get
But now i''ve got to mock / stub
2016 Jan 11
2
Samba AD with Microsoft Account
In a related problem. I've tried linking my Office365 account. I get
through the sign-in process but when it is attempting to link the device I
can an error message stating:
*We weren't able to register your device and add your account to Windows.
Your access to org resources may be limited.*
The domain account I am logged in with is part of the Domain...
2007 Mar 23
0
Importing accounts from NT4 domain with Vampire
...ill the net rpc vampire command, some users give
an error others are imported fine.
I don't see any problem on this users configuration in the NT4 server,
here is part of the output:
thanks.
fb_nt2:/etc/samba# net rpc vampire -S fb_nt -W FFTBL -UFilipe%*****
Fetching DOMAIN database
Creating account: Administrator
Creating account: Guest
[2007/03/19 11:19:24, 0] passdb/pdb_tdb.c:tdb_update_sam(641)
Unable to modify passwd TDB! Error: Record does not exist occured while
storing the main record (USER_guest)
Creating account: FB_NT$
[2007/03/19 11:19:24, 0] passdb/pdb_tdb.c:tdb_update_sam(641)...