search for: role

Displaying 20 results from an estimated 8790 matches for "role".

Did you mean: hole
2007 Aug 12
3
Scope and specing models
Hello all, I''m currently having an issue with some specs, specifically scope issues (probably more of a scope issue than a spec issue at this point)... Here''s the error: ActiveRecord::AssociationTypeMismatch in ''A new User should know what role it has'' Role expected, got NilClass D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in `add'' ./spec/models/user_spec.rb:62: script/spec:4: Here''s the user.rb http://pastie.caboo.se/87029 role.rb http://pastie.caboo.se/87030 user_spec.rb http...
2006 Jan 02
5
DB Modelling the Rails way - Opinions??
...to model the following. I can think of at least two ways to relate the tables but from a client/server perspective! I''m wondering how to best (and elegantly)relate them from an AR perspective. A project has many people, A person can work on many projects at any time, A project has many roles, A role is performed by a person, A person may perform multiple roles, An organisation has many people, An organisation is a stakeholder (God, I hate that word - makes me feel like Dracula surrounded!)in one or more projects, A stakeholder has many roles within a project. So one way I have Proj...
2008 Aug 29
3
BDDish rspecish question
Hey list, This is a kinda quirky question for this list, but I do think it belongs here. I''m currently writing an app with users with different roles. Roles are sequentially so to speak, so role 2 can do everything role 1 can, and so on. If I truly test my whole app, I should test all behaviour for each role, I guess. I could solve that by doing some clever shared steps and all, but my main question is this: should I test the behaviour of...
2007 Feb 20
1
Urls generated by nested map.resources
...routes. For resources that aren''t related to anything else, everything makes sense - for resources with relationships, I am less certain of what the "right" thing to do - especially in relation to the urls produced, and how to modify those urls. For example, if I have teams and roles - each role belonging to one team and teams having many roles. Each role *must* belong to a team. Currently my routes.rb looks something like this: map.resources :team do |team| team.resources :roles end map.resources :roles The urls I *think* I want for roles are: GET /roles...
2006 Apr 15
8
Migrations - adding a new table and automatically creating records
I want to create table called roles and then populate it with some new records...This doesn''t work. Is there something I''m missing? Craig class AddRightsAndRolesTables < ActiveRecord::Migration def self.up create_table :roles do |t| t.column "name", :string end Role.reset_col...
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that my users can have multiple roles. ("Admin" role does always have id = 1). I have added these methods to my application controller. <code> helper_method :is_admin? helper_method :is_user? def is_admin? if @session[&...
2006 Aug 18
9
Rails is doing what I want - but I don''t understand how.
Hi guys, I have the strangest thing happening. The funny part is its doing exactly what I want to do, I just don''t understand how. Basically here is my model. class Role < ActiveRecord::Base has_and_belongs_to_many :users has_and_belongs_to_many :rights def self.names names = Array.new() for role in Role.find :all names << role.name end return names end end migration file for reference: class CreateRoles < ActiveRecord::...
2006 Jan 07
4
To Chris Hall - Re: DB Modelling the Rails way - Opinions??
...ink of at least two ways to relate the tables but from a > client/server perspective! I''m wondering how to best (and > elegantly)relate them from an AR perspective. > > A project has many people, > A person can work on many projects at any time, > A project has many roles, > A role is performed by a person, > A person may perform multiple roles, > An organisation has many people, > An organisation is a stakeholder (God, I hate that word - makes me feel > like Dracula surrounded!)in one or more projects, > A stakeholder has many roles within...
2006 Apr 10
6
Single Table Mapping
This is pretty simple, but I must be missing the obvious. I''ve got a table that''s similar to this: USERS: - id int - username varchar(64) - password varchar(64) - role_id int ROLES: - id int - description varchar(16) I''ve had no troubles doing has_many relationships at all. But I want to map the user.role directly to the role model automatically (which sounds like it should be really simple). Right now if I look at the user''s attributes t...
2016 Sep 30
2
?==?utf-8?q? uncaught exception on samba-tool fsmo transfer
...mba version 4.5.0 Am Freitag, 30. September 2016 10:31 CEST, Rowland Penny via samba <samba at lists.samba.org> schrieb: > On Fri, 30 Sep 2016 10:20:27 +0200 > Heinz Hölzl via samba <samba at lists.samba.org> wrote: > > > Hi, > > > > i transfered the roles from DC2 to DC1: > > > > root at dc1:~# samba-tool fsmo transfer --role=all -U administrator> > This DC already has the 'rid' FSMO role > > This DC already has the 'pdc' FSMO role > > This DC already has the 'naming' FSMO role > > This D...
2007 Jul 24
6
Mocking Access Control
I''m trying to jump on the TDD/BDD bandwagon, but am having trouble understanding how i should mock my user. The user has a habtm relationship to a roles model (acl_system2 plugin), but I''m not sure how to tell rspec about a model. My code: describe UsersController do integrate_views before(:each) do @user = mock_model(User) @user.stub!(:new_record?).and_return(false) @user.stub!(:id).and_return(666) @user.stub!(:ema...
2019 Aug 04
3
Problems Transferring FSMO Roles
Hi, Hi, I'm having trouble transferring FSMO roles "DOMAINDNS" and FORESTDNS with below showing: samba-tool fsmo transfer --role=domaindns ERROR: Failed to delete role 'domaindns': LDAP error 50 LDAP_INSUFFICIENT_ACCESS_RIGHTS - <00002098: SecErr: DSID-031523E0, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0 > <> root...
2015 Aug 25
3
Transfer of FSMO roles
I just transferred all the FSMO roles from DC-MIGRATE to DC1: [root at dc1 ~]# samba-tool fsmo transfer --role=all FSMO transfer of 'rid' role successful FSMO transfer of 'pdc' role successful FSMO transfer of 'naming' role successful FSMO transfer of 'infrastructure' role successful FSMO transfer of &...
2016 Aug 18
0
winbind max clients = 2000 ( samba 4.5rc.x) crash problem
...kets = Yes winbind offline logon = Yes winbind normalize names = Yes winbind sealed pipes = Yes winbind rpc only = Yes wins proxy = Yes problem: service samba status root 58944 0.0 0.2 699252 18388 ? S 07:49 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 58945 0.0 0.1 693020 15724 ? S 07:49 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 58946 0.0 0.2 699252 18388 ? S 07:49 0:00 /usr/local/samba/sbin/smbd -D --option=server role check...
2017 Oct 05
2
Magically disappearing errors during FSMO transfer
Recently tried transferring roles from Samba 4.3.11 to Samba 4.7.0. Ultimately, both dcs agreed that the 4.7.0 dc (dc3) had all the roles and replication and the databases were in good shape. However, during the process, I got a lot of errors that seemed to magically disappear. Should I be worried? root at dc3:~# samba-tool fsm...
2015 Oct 02
3
transfer fsmo role using ldap
On 02/10/15 20:09, Yosel Lazaro Vera Gonzalez wrote: > > ----- Mensaje original ----- > De: "Rowland Penny" <rowlandpenny241155 at gmail.com> > Para: samba at lists.samba.org > Enviados: Viernes, 2 de Octubre 2015 3:54:04 > Asunto: Re: [Samba] transfer fsmo role using ldap > > On 02/10/15 04:27, Yosel Lazaro Vera Gonzalez wrote: >> !!!Regards >> >> Is it possible to transfer the FSMO roles using ldap? >> For example I get the schema container object using ldap, then I modify the attribute fSMORoleOwner >> I change th...
2016 Sep 30
2
?==?utf-8?q? ?==?utf-8?q? ?= uncaught exception on samba-tool fsmo transfe
ok, a other try .. i tranfer the roles back to DC2: first run: error second run: error third run: NO error then i added "import samba.drs_utils" in /opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py and now the role transfer works fine. root at dc2:~# samba-tool fsmo transfer --role=all -U administra...
2015 Oct 06
2
Failed to transfer all 7 FSMOs
...s from Windows Server 2003 Enterprise to Samba 4.3.0 DC. (I think some users still use Win2K3 and want to migrate.) But unfortunately is failed. To reproduce, (1) Promoto Win2K3R2 Enterprise host to first DC. (2) Join self-built Samba 4.3.0 to the domain. (3) Run 'samba-tool fsmo transfer --role=all' root at jessie64-1:~# samba-tool fsmo transfer --role=all FSMO transfer of 'rid' role successful FSMO transfer of 'pdc' role successful FSMO transfer of 'naming' role successful FSMO transfer of 'infrastructure' role successful FSMO transfer of 'schema&...
2006 Feb 15
4
problem with saving id''s in a join table
hello, I''am new to ROR and I have a problem. I have to models "rights" and "roles" on a has_and_belongs_to_many relationship, through "roles_rights" table. When I try to add a new role although I put in my form fields for each right, a record is added to table roles but none to roles_rights. I am using Ruby 1.8.4 rails 1.0 mysql 5.0 here is my code: ========...
2017 Aug 04
2
Error while transferring fsmo-roles
Hello, I transfered all fsmo-roles from a DC (4.3.11-SerNet, SLES 11 SP3) to another DC (4.6.6-SerNet, SLES 12 SP2). I had to try a couple of times because of an error "Failed FSMO transfer: NT_STATUS_IO_TIMEOUT" But then following error happened: samba-tool fsmo transfer --role=all This DC already has the 'rid&...