search for: roles

Displaying 20 results from an estimated 8811 matches for "roles".

Did you mean: role
2007 Aug 12
3
Scope and specing models
...pp/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://pastie.caboo.se/87032 The code is based off of RESTful authentication + Ben Curtis'' user roles in Rails Application: http://www.bencurtis.com/archives/2007/06/user-roles-in-rails-applications/ Thanks for your help! -- dp -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070812/38430919/attachment.html
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 Proje...
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_colu...
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.
...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::Migration def self.up create_table :roles_users, :id => false do |t| t.column "role_id", :integer t.column "user_id", :integer end create_table :roles do |t| t.column "name", :string end end def self.down d...
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 a...
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 the correct rol...
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 DC...
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!(:emai...
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 a...
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
samba 4.4..x version no problem. samba 4.5.rc1 4.5.rc2 4.5.-test all versions problem. winbind max clients = 2000 line. server crashes in 1 day.. :((( my smb file here. winbindd:use external pipes = true winbind cache time = 300 winbind reconnect delay = 30 winbind request timeout = 60 winbind max clients = 2000 # winbind max clients = 200 winbind max domain
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 fsmo...
2015 Oct 02
3
transfer fsmo role using ldap
...155 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 the following value "CN=NTDS Settings,CN=SERVER1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com" by "CN=NTD...
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 administrat...
2015 Oct 06
2
Failed to transfer all 7 FSMOs
Hello, I tested to transfer all 7 FSMOs 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
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...