ldapmapper 1.1 → 1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ldapmapper.rb +7 -6
- metadata +1 -1
data/lib/ldapmapper.rb
CHANGED
@@ -2,20 +2,19 @@
|
|
2
2
|
#
|
3
3
|
# = LdapMapper : LDAP CRUD Object
|
4
4
|
#
|
5
|
-
# == Copyright Ultragreen (c) 2005
|
5
|
+
# == Copyright Ultragreen (c) 2005-2007
|
6
6
|
#
|
7
7
|
# == About :
|
8
8
|
#
|
9
9
|
# * Author:: Romain GEORGES
|
10
10
|
# * type:: class definition Ruby
|
11
11
|
# * obj:: Generic LDAP class
|
12
|
-
#
|
13
|
-
#
|
12
|
+
#
|
14
13
|
# == Exemples :
|
15
14
|
#
|
16
15
|
# #!/usr/local/bin/ruby
|
17
16
|
# require 'rubygems'
|
18
|
-
#
|
17
|
+
# require 'ldapmapper'
|
19
18
|
# include Ldapmapper
|
20
19
|
# _basedn = 'dc=__domaine__,dc=__tld__'
|
21
20
|
# _dn = "ou=toto,#{_basedn}"
|
@@ -94,7 +93,7 @@ module Ldapmapper
|
|
94
93
|
|
95
94
|
# identity lib
|
96
95
|
# version of the library
|
97
|
-
LIB_VERSION='1.
|
96
|
+
LIB_VERSION='1.2'
|
98
97
|
# name of the author
|
99
98
|
AUTHOR='Romain GEORGES'
|
100
99
|
# date of creation
|
@@ -183,6 +182,7 @@ module Ldapmapper
|
|
183
182
|
@list_objectclass = @list_objectclass.concat(get_objectclass_list(self.dn_ldap,self.host_ldap,self.port_ldap))
|
184
183
|
@list_objectclass.push(_objectclass).uniq!
|
185
184
|
@list_attributs_type = get_attributs_list(self.list_objectclass,self.host_ldap,self.port_ldap)
|
185
|
+
|
186
186
|
@list_attributs = map_record(self.dn_ldap,self.host_ldap,self.port_ldap)
|
187
187
|
if not @list_attributs.nil? or @list_attributs.empty? then
|
188
188
|
@list_attributs.each{|_key,_value|
|
@@ -264,7 +264,7 @@ module Ldapmapper
|
|
264
264
|
_must_list.push(_key) if _value == 'MUST'
|
265
265
|
}
|
266
266
|
_must_list.delete('dn') if _must_list.include?('dn')
|
267
|
-
return _must_list
|
267
|
+
return _must_list
|
268
268
|
end
|
269
269
|
|
270
270
|
# return the attributes list how may be present in the record
|
@@ -440,6 +440,7 @@ module Ldapmapper
|
|
440
440
|
_my_list_attributs["dn"] = "MUST"
|
441
441
|
_my_list_attributs["objectClass"] = "MUST"
|
442
442
|
return _my_list_attributs
|
443
|
+
|
443
444
|
end
|
444
445
|
end
|
445
446
|
|