similar to: Listing users and groups from Active Directory

Displaying 20 results from an estimated 100000 matches similar to: "Listing users and groups from Active Directory"

2004 Nov 19
1
Active Directory, Listing Users in Groups.
I have samba 3.0.8, as a member of 2000AD and 2003AD. I would like to get groups and the members in each group. The purpose is to maintain a set of Filtering profiles on squidGuard that are based on AD groups. I will have a script that reads a config file with the groupnames to fetch from Active Directory and a Precedence order to set them in. One of the groups will be designated "a NO
2008 Jul 21
0
Re: Listing user jobs
I have been able to list all jobs for a user with the following code: In application_helper.rb: def userjobs userid = current_user.id @jobs = Job.find(:all, :conditions => { :user_id => userid }) return(@jobs) end In application.rb: helper :application In qalayout.html.erb: <% if logged_in? %> <a href="javascript:;"
2007 Dec 03
4
How to remember if a div is shown or hidden after a page ref
Hi everyone, hi have a similar problem in a view: <div id="content">...</div> <a href="javascript:void(0)" onClick="Effect.Toggle(''content'');">Hide/show content</a> I would like the page to "remember" that the div has been hidden after a page reload. (The div comes up always visible even if it was set to hidden
2007 May 31
3
where to get list of all ActiveRecord classes
Anybody know how to get a list of all your model classes from a rails environment? I''d like to do something like "ActiveRecord::Base.subclasses" but that gives me: pcollins@horatio:~/proj/foobox$ script/console Loading development environment. >> ActiveRecord::Base.subclasses NoMethodError: protected method `subclasses'' called ... Anybody know how to do
2008 Apr 07
2
Simple active record issue. I must be missing something.
Here''s a seemingly simple ActiveRecord use case. I have Projects and Users. Each project has a single team leader as well as a review team that consists of several users. I would like to use the same User model for authentication and just reference these users in my Project model. I tried this but got an "unknown column" error (for User.project_id) class Project has_one
2006 Nov 25
4
Sessions And Active Record
Hi, I''m a newbie even though I''ve play with rails for a few months now. I would like to save several activerecord objects (not in the database) accross several screens. What is the prefered rails way to do this? Should copy all of their data to @session or use the member variables and put them into hidden fields? I am trying to move from "whatever kludge works" to
2008 Aug 21
0
InterDomain Trust Issue; Active directory domain does not return users and groups
I have created a two way Interdomain Trust between a Samba 3.21 Domain and a Windows 2003 Server Domain. I am able to log into the Active Directory domain with my Samba users and I am able to access shares set up in the AD Domain. However, when I attempt to log into the samba domain with a user from the Windows 2003 domain, I get an error saying the username/password is not correct.  From the
2008 Nov 13
3
Creating a file and saving in public directory
Hello, I''m fairly new to Ruby on Rails. I have a model called Report and I''m trying to create a text file that is saved in a /public/report directory. I''ve had a look at the ruby api but I can''t seem to get this working. The current code I have is: #report.rb class Report < ActiveRecord::Base after_save :write_file def write_file if @file_data
2007 Mar 19
4
Active session list
Hi all Does anybody know how to get active session list or list of active session ID in RubyOnRails? Thanks --~--~---------~--~----~------------~-------~--~----~ 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
2008 Sep 12
3
Help: A copy of ModelSecurity has been removed from the module tree but is still active!
Hi all, I''m posting this in the hope that someone who understands rails dependencies can shed some light. I''ve implemented a "ModelSecurity" module in the vein of Bruce Peren''s old ModelSecurity plugin (http://rubyforge.org/projects/model- security/). My ModelSecurity module lives in $RAILS_ROOT/lib. It is automatically included into ActiveRecord::Base by a
2006 Sep 27
7
problems with accessing controllers in sub tree directory
Hey guys, I used "script/generate controller admin/event" How do I link to the views and the controller when it''s inside a directory. I tried <%= link_to "some link", :controller=>"event",:action=>"index" %> <%= link_to "some link", :controller=>"admin/event",:action=>"index" %> <%=
2006 Dec 31
2
Presenting a grouped list of objects from STI
Hello, I have been following the STI example in AWDWR and have a question about presenting the output. I want to output a list of Person objects that are grouped by their type. I have an array of all the Person objects and I would like the output to be as follows. Employee x3 <ul> <li>Employee 1</li> <li>Employee 2</li> <li>Employee 3</li> </ul>
2007 Nov 24
0
Listing documents in two different controllers - refactor?
Hello, if I have a document model (not RESTful) that belongs_to document_category and a document controller with a list action, and I want to list document per category can I just pass the id of the category as the :id GET param of the list action and filter the documents for this category? I think that that this wouldn''t be semantically good since one would expect to get a list of all
2007 Mar 28
0
Active Directory Groups within /etc/group
I apologize if I'm going down the wrong avenue here... I have Samba/Winbind working to authenticate AD accounts to my Linux server. I can perform getent passwd ADUser and view the user credentials as well as using getent group ADGroup to view AD groups. When I modify /etc/group I can add ADUser to the file and the ADUser will have the security desired. However when I add an ADGroup to
2009 Mar 27
1
using pagination to group pages by attribute value
Hi - I''m trying to group records based on some attribute they or an association of their''s have. The simplest example I could think of to drive my point is this: Assume the following model associations (pardon my butchering of rails) - Faculty has_many :courses Course belongs_to :faculty I want to paginate courses based on the name of the faculty they belong to. The paging
2004 Jan 28
0
Winbind not listing users/groups
Hello: I have configured Samba on Solaris 9 operating environment. I have successfully joined a Windows 2000 AD domain with winbind. However, when I run: wbinfo -u..I get DOMAIN\root wbinfo - n user..I get SID wbinfo -g..I get Error looking up domain groups wbinfo -t..I get checking the trust secret via RPC calls succeeded Why can't I list the users and groups?Thanks. Mike Kiai. This
2006 Nov 01
0
ADS and Winbind problems with joining domain and listing users/ groups
Hi I am having trouble joining a Samba 3.0.22 (Ubuntu 6.06) machine to an AD. I have done a heap of googling and can't find anything that seems to fix the problem. This sequence of commands shows the problem (I have now tried to join the doain a number of times hence the modifying old account): # net ads join [2006/11/01 15:32:56, 0] libads/ldap.c:ads_add_machine_acct(1414)
2006 Jun 23
1
Active Directory Primary group dont' show users
Hi all I have configured samba 3.0.11 in a windows 2003 domain as a domain member (security=ads).issue is, when i issue command getent group |grep domain users it shows DOMAIN+domain users:x:1004: it don't shows any user in this group while this group contains all the users in domain.it is primary group of all the users. if i set primary group of a user to something else then it
2007 Nov 23
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section. They live in app/views/shared/_header.rhtml & _footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: <div id="header"> <%= render :partial => ''shared/header'' %> </div> They contain many lines like this: <a
2007 Jun 18
0
Phoenix Rails Users Group
What: June Phoenix Rails Users Group When: Tuesday, June 19th, 6:30 pm - 9pm Where: Office of Integrum Technologies 290 East El Prado Court, Chandler, AZ (north-east of Arizona and Warner) Topic: Overview of alternative Ruby web frameworks ---- Please join us Tuesday evening at 6:30 pm for the Phoenix Rails Users Group. This month Josh Knowles and Jade