Displaying 20 results from an estimated 311 matches for "azapple".
2006 Mar 26
17
activeldap
...''account'']
#belongs_to :groups, :class_name => ''Groups'', :foreign_key =>
''memberUid'', :local_key => ''uid''
def self.login(username, password)
begin
ActiveLDAP::Base.connect(
:host => "srv1.azapple.com",
:port => 389,
:base => "dc=azapple,dc=com",
:bind_format => "uid=#{username},ou=People,dc=azapple,dc=com",
:password_block => Proc.new { password },
:allow_anonymous => false
)
ActiveLDAP::Base.close...
2006 Feb 07
7
select list error - following Agile guide
I would swear that I am tracking exactly the method used in Agile
book...
TypeError in Placements#edit
Showing app/views/placements/_form.rhtml where line #33 raised:
wrong argument type String (expected Module)
Extracted source (around line #33):
30: <tr>
31: <td><label for "type">Type</label></br><%=
32: options = [["Select
2006 Feb 21
8
Validations continued
I simply can''t figure this out. I have been reading and re-reading Agile
book and wiki.rubyonrails.org - all sorts of validation methods and
still, it doesn''t work.
Controller code
def create
@client = Client.new(params[:client])
if @client.save!
flash[:notice] = ''Client was successfully created.''
redirect_to :action =>
2006 Mar 10
6
boolean select problem
I want to use select form elements to choose between boolean options. How
can I have it default to true and still display the persisted value (either
true or false) when editing an existing object? I guess booleans default to
false by default so its not obvious how to recognize when it''s a real
''false'' that the user set or default false because the value was null.
2006 May 29
5
Find last
This seems rather ugly. I am thinking that this needs to be in the model
but I am looking to obtain the date for a tb test...
>> @tb = Innoculation.find(:all,
:conditions => ["personnel_id = 1 AND innoc_type = ''TB''"],
:order => ''innoc_date DESC'')
=> [#<Innoculation:0xb77ed234 @attributes={"id"=>"1",
2005 Nov 08
2
Possible to have Email-Adresses as logins?
Hi,
we want to set up a samba-server with an ldap-backend (so far no
problem, got this running already) but want the users to login to
workstations using their email-address instead of a "normal"
login-name.
I already figured out that i cannot add unix users with an "@" in
their login neither via "useradd" nor via "smbldap-useradd", so i was
thinking about
2006 Jun 04
3
link_to tool tips
I think they are called tool tips...
I have view code that looks like this...
<%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %>
Is there an option (I don''t see it in api) to have tool tips for a
link_to ?
Craig
2006 Mar 11
4
Unable to add computer to domain
I have an OpenLDAP backend, Samba knows how to talk to it, my Samba users
are stored in LDAP and file shares work fine authenticating to the LDAP
server.
I tried executing smbldap-useradd -w server02 on the command-line and got
the following error:
failed to perform search; Can't contact LDAP server at
/usr/lib/perl5/vendor_perl/5.8.7/smbldap_tools.pm line 362, <DATA> line 283.
Error
2006 Feb 28
7
multi-page printing moving on
I have some nice forms done using stylesheets. I currently have them
displaying on screen and the user could simply just print.
This works when there is only one form (facility) to be viewed/printed.
I have created the looping code necessary to print for all facilities
but that doesn''t work for me because each page uses stylesheets with
<div> that do absolute positioning and thus
2006 Feb 08
7
DRY methodology
because I am a grasshopper...
Now that I can sort my ''list''...is there a logical way of not repeating
myself to having essentially the same list view with multiple sorts?
i.e.
def list_cl
# ordered by clients last name
@placement_pages, @placements = paginate(
:placements,
:include => [:client],
:order_by =>
2006 Feb 18
3
Samba LDAP PDC BDC quit working
We have had a Samba LDAP-PDC-BDC system setup for close to 3 months with
about 60 computers in the domain. Earlier we had a power outage and
about 30 computers no longer were able to log into the domain or
authenticate. Some were NT Workstations and some were W2k. But not all
NT or W2K workstations were affected.
If we went to network neighborhood we would see the error message
"
2006 Jun 19
9
index columns in postgres
I am in a holding pattern while client decides upon changes and so I am
working some things out internally so it seems to me that indexing
frequently searched table fields might be useful.
I am using postgres and via postgres, I have added an index to one of my
tables whose index is the same name as the column name. The ''find''
screen I am using this to judge populates a number
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_column_information
Role.new :name => "Users Admin"
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using
last_name. so looking for ''ivanoff'' works great, but I can''t find
''john''. Plus I like to have ''last_name, first_name'' show up in the
dropdown.
what I can''t figure out is how to concat first_name and last_name to
make a name and use that to look it.
working
2006 Mar 18
6
ActiveLDAP and variable sub scope object writing
Anyone out there using ActiveLDAP have an idea how I can accomplish
creating an object one level below a known base where we have a variable
item in the middle?
That first sentence doesn''t even make sense to me. Here''s what I want
to do: I have a user class that I use for managing users. Each user
gets a ou called addressbook (which in turn will contain sub-entries,
but
2006 Mar 08
12
best way to combine results from two tables
I want to combine a selection of data from two tables and display it as
list. Note that this isn''t a join.
i''m looking for something like this:
Table 1: Sheep
Name, Age, Farmer, etc. (sheep specific columns)
Table 2: Cows:
Name, Age, Farmer, etc. (cow specific columns)
For my display I nneed something like this:
Farmer Jone''s Livestock:
TYPE NAME AGE
Cow
2006 Jan 09
1
OpenLDAP Problem
Everyone,
We currently are running a Centos3 directory server, I am currently
testing centos4 as an upgrade of this machine in the future. There is a
special user we have called cn=samba,ou=special in our directory, this
user is for samba to use when binding to the directory. On the
production replica server, i have taken an offline slapcat ldif of the
entire tree. I then copied this file to
2006 Feb 03
4
contoller code mysteries
In my controller...this code works
def list2
first_name = params[:client][:first_name]
@myclients = Client.find(:all, :conditions =>
["first_name = :first_name", {:first_name => first_name}])
end
this code doesn''t...
def list2
first_name = params[:client][:first_name]
if first_name
searchstring = ''["first_name =
2006 May 31
3
detecting changed data
I am working on an application where there are many different screens to
access the data in a particular record/row. I have links to each data
entry screen at the top. Is there a way to detect whether the current
hash has been changed from the stored record so I can prompt the user if
they attempt to change screens without having saved their changes to the
data?
Craig