This repository has been archived by the owner on Nov 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
141 lines (114 loc) · 4.28 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
= ActiveLdap
ruby library for object-oriented LDAP interction
* Copyright (C) 2004-2006 Will Drewry <tt><[email protected]></tt>
* Copyright (C) 2006-2009 Kouhei Sutou <tt><[email protected]></tt>
Contributors::
* Dick Davies <tt><rasputnik AT hellooperator.net></tt>
* Nathan Kinder <tt><quicksilver02 AT mac.com></tt>
* Patrick Cole <tt><pac AT independent.com.au></tt>
* Google Inc.
== DESCRIPTION
'ActiveLdap' is a ruby extension library which provides a clean objected
oriented interface to the Ruby/LDAP[0] library. It was inspired by
ActivRecord[3]. This is not nearly as clean or as flexible as ActiveRecord, but
it is still trivial to define new objects and manipulate them with minimal
difficulty.
For example and usage - read the rdoc in doc/ from lib/activeldap.rb.
It is also available on the web at:
http://ruby-activeldap.rubyforge.org/
== PREREQUISITES
[Ruby intepreter]
One of them:
* Ruby[http://www.ruby-lang.org] (1.8.x or 1.9.1)
* JRuby[http://jruby.codehaus.org/]
[LDAP client]
JRuby doesn't need to install new library because JRuby
has builtin LDAP support. Ruby users need one of them:
* Ruby/LDAP[http://rubyforge.org/projects/ruby-ldap/]
* Net::LDAP[http://rubyforge.org/projects/net-ldap/]
* ActiveRecord[http://activerecord.rubyonrails.org]
== NOTES
* Only GSSAPI SASL support exists due to Ruby/LDAP limitations
== INSTALL
% sudo gem install activeldap
== RAILS
There is a small rails plugin included that allows the use
of a file named 'config/ldap.yml' in the config directory of
your rails app. This file has a similar function to the
'database.yml' file that allows you to set your database
connection settings per environment. Similarly, the ldap.yml
file allows settings to be set for development, test, and
production environments. For instance, the development entry
would look something like the following:
development:
host: 127.0.0.1
port: 389
base: dc=localhost
bind_dn: cn=admin,dc=localhost
password: secret
To install, simply add the following codes to you config/environment.rb:
config.gem "activeldap", :lib => "active_ldap"
When your application starts up, the plugin will call
ActiveLdap::Base.setup_connection using the parameters
specified for your current environment.
== LICENCE
This program is free software; you can redistribute it and/or modify it. It is
dual licensed under Ruby's license and under the terms of the GNU General
Public License as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
Please see the file LICENSE for the terms of the licence.
== THANKS
This list may not be correct. If you notice mistakes of this
list, please point out.
* Nobody: Bug reports and API improveent ideas.
* James Hughes: Bug reports and advices and documentations.
* Buzz Chopra: Documentations.
* Christoph Lipp: Bug reports.
* Jeff Hall: Bug reports.
* Ernie Miller: Bug reports and advices.
* Daniel Pfile: Patches.
* Jacob Wilkins: Bug reports.
* Ace Suares:
* Bug reports.
* Nederlands translations.
* Iain Pople: Bug reports and API improvement ideas.
* Christoph Lipp: Tell us character escape syntax.
* Kevin McCarthy: Patches.
* Perry Smith: Patches, bug reports and indications.
* Marc Dequènes: API suggestions.
* Jeremy Pruitt: Bug reports.
* Bodaniel Jeanes:
* A suggestion for behavior on simple bind with empty password.
* Bug reports.
* Naoto Morishima: Bug reports.
* David Morton:
* An API improvement idea.
* Bug reports.
* Lennon Day-Reynolds: Bug reports.
* Tilo: A bug report.
* Matt Mencel: A bug report.
* CultureSpy:
* Bug reports.
* Bug fixes.
* gwarf12: A bug report.
* Baptiste Grenier: API improvement ideas.
* Richard 3 Nicholas: API improvement ideas.
* Kazuhiro NISHIYAMA: A bug report.
* Grzegorz Marszałek: A bug report.
* しまさわらさん: A suggesetion.
* Ted Lepich: A suggestion.
* danger1986: A suggestion.
* michael.j.konopka: Bug reports.
* ingersoll: A suggestion.
* Alexey.Chebotar: Bug reports.
* ery.lee: A bug report.
* id:dicdak: A bug report.
* Raiko Mitsu: A bug report.
* Kazuaki Takase: Documents in Japanese.
* Tim Hermans: A bug report.
* Joe Francis: A suggestion.
* Tiago Fernandes: Bug reports.
* achemze: A suggestion.
* George Montana Harkin: A suggestion.
* Marc Dequènes: Bug reports.
* [email protected]: A bug report.