fakeldap 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/README.md +2 -0
  2. data/lib/fakeldap.rb +20 -0
  3. data/lib/fakeldap/version.rb +1 -1
  4. data/vendor/ruby-ldapserver/doc/LDAP.html +104 -0
  5. data/vendor/ruby-ldapserver/doc/LDAP/Abandon.html +112 -0
  6. data/vendor/ruby-ldapserver/doc/LDAP/Error.html +115 -0
  7. data/vendor/ruby-ldapserver/doc/LDAP/ResultError.html +241 -0
  8. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AdminLimitExceeded.html +158 -0
  9. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AffectsMultipleDSAs.html +158 -0
  10. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasDereferencingProblem.html +158 -0
  11. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasProblem.html +158 -0
  12. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AttributeOrValueExists.html +158 -0
  13. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AuthMethodNotSupported.html +158 -0
  14. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Busy.html +158 -0
  15. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareFalse.html +158 -0
  16. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareTrue.html +158 -0
  17. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConfidentialityRequired.html +158 -0
  18. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConstraintViolation.html +158 -0
  19. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/EntryAlreadyExists.html +158 -0
  20. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateAuthentication.html +158 -0
  21. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateMatching.html +158 -0
  22. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InsufficientAccessRights.html +158 -0
  23. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidAttributeSyntax.html +158 -0
  24. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidCredentials.html +158 -0
  25. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidDNSyntax.html +158 -0
  26. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/IsLeaf.html +158 -0
  27. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/LoopDetect.html +158 -0
  28. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NamingViolation.html +158 -0
  29. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchAttribute.html +158 -0
  30. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchObject.html +158 -0
  31. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnNonLeaf.html +158 -0
  32. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnRDN.html +158 -0
  33. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassModsProhibited.html +158 -0
  34. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassViolation.html +158 -0
  35. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/OperationsError.html +158 -0
  36. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Other.html +158 -0
  37. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ProtocolError.html +158 -0
  38. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Referral.html +158 -0
  39. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SaslBindInProgress.html +158 -0
  40. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SizeLimitExceeded.html +158 -0
  41. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/StrongAuthRequired.html +158 -0
  42. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Success.html +158 -0
  43. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/TimeLimitExceeded.html +158 -0
  44. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Unavailable.html +158 -0
  45. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnavailableCriticalExtension.html +158 -0
  46. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UndefinedAttributeType.html +158 -0
  47. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnwillingToPerform.html +158 -0
  48. data/vendor/ruby-ldapserver/doc/LDAP/Server.html +1056 -0
  49. data/vendor/ruby-ldapserver/doc/LDAP/Server/Connection.html +1353 -0
  50. data/vendor/ruby-ldapserver/doc/LDAP/Server/Filter.html +634 -0
  51. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule.html +1132 -0
  52. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/DefaultMatchingClass.html +219 -0
  53. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Equality.html +170 -0
  54. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Downcase.html +143 -0
  55. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Trim.html +155 -0
  56. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Integer.html +143 -0
  57. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Ordering.html +212 -0
  58. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringDowncase.html +143 -0
  59. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringTrim.html +154 -0
  60. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Substrings.html +177 -0
  61. data/vendor/ruby-ldapserver/doc/LDAP/Server/Operation.html +2994 -0
  62. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema.html +2024 -0
  63. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/AttributeType.html +1462 -0
  64. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/ObjectClass.html +1097 -0
  65. data/vendor/ruby-ldapserver/doc/LDAP/Server/Syntax.html +1254 -0
  66. data/vendor/ruby-ldapserver/doc/LDAP/Server/VERSION.html +134 -0
  67. data/vendor/ruby-ldapserver/doc/_index.html +662 -0
  68. data/vendor/ruby-ldapserver/doc/class_list.html +36 -0
  69. data/vendor/ruby-ldapserver/doc/css/common.css +1 -0
  70. data/vendor/ruby-ldapserver/doc/css/full_list.css +50 -0
  71. data/vendor/ruby-ldapserver/doc/css/style.css +303 -0
  72. data/vendor/ruby-ldapserver/doc/file.README.html +399 -0
  73. data/vendor/ruby-ldapserver/doc/file_list.html +38 -0
  74. data/vendor/ruby-ldapserver/doc/frames.html +13 -0
  75. data/vendor/ruby-ldapserver/doc/index.html +399 -0
  76. data/vendor/ruby-ldapserver/doc/js/app.js +204 -0
  77. data/vendor/ruby-ldapserver/doc/js/full_list.js +112 -0
  78. data/vendor/ruby-ldapserver/doc/js/jquery.js +154 -0
  79. data/vendor/ruby-ldapserver/doc/method_list.html +1571 -0
  80. data/vendor/ruby-ldapserver/doc/top-level-namespace.html +88 -0
  81. metadata +99 -10
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ Install: `gem install fakeldap`
2
+
1
3
  Only supports bind operations for now.
2
4
 
3
5
  Have a look at [server_spec.rb](http://github.com/aanand/fakeldap/blob/master/spec/server_spec.rb) for usage.
@@ -16,6 +16,15 @@ module FakeLDAP
16
16
  @users.has_key?(user) && @users[user] == pass
17
17
  end
18
18
 
19
+ def find_users(basedn, filter)
20
+ basedn_regex = /#{Regexp.escape(basedn)}$/
21
+ filter_regex = /^#{filter[1]}=#{filter[3]}$/
22
+
23
+ @users.keys.select { |dn|
24
+ dn =~ basedn_regex && dn.split(",").grep(filter_regex).any?
25
+ }
26
+ end
27
+
19
28
  def default_options
20
29
  {
21
30
  :operation_class => ::FakeLDAP::Operation,
@@ -41,6 +50,17 @@ module FakeLDAP
41
50
  "Invalid credentials"
42
51
  end
43
52
  end
53
+
54
+ def search(basedn, scope, deref, filter, attrs=nil)
55
+ unless filter.first == :eq
56
+ raise LDAP::ResultError::UnwillingToPerform,
57
+ "Only equality matches are supported"
58
+ end
59
+
60
+ @server.find_users(basedn, filter).each do |dn|
61
+ send_SearchResultEntry(dn, {})
62
+ end
63
+ end
44
64
  end
45
65
  end
46
66
 
@@ -1,4 +1,4 @@
1
1
  module FakeLDAP
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  end
4
4
 
@@ -0,0 +1,104 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Module: LDAP</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html">Index (L)</a> &raquo;
27
+
28
+
29
+ <span class="title">LDAP</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Module: LDAP
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ <dt class="r1 last">Defined in:</dt>
62
+ <dd class="r1 last">lib/ldap/server/version.rb<span class="defines">,<br />
63
+ lib/ldap/server/util.rb,<br /> lib/ldap/server/match.rb,<br /> lib/ldap/server/syntax.rb,<br /> lib/ldap/server/filter.rb,<br /> lib/ldap/server/result.rb,<br /> lib/ldap/server/server.rb,<br /> lib/ldap/server/schema.rb,<br /> lib/ldap/server/tcpserver.rb,<br /> lib/ldap/server/operation.rb,<br /> lib/ldap/server/connection.rb,<br /> lib/ldap/server/preforkserver.rb</span>
64
+ </dd>
65
+
66
+ </dl>
67
+ <div class="clear"></div>
68
+
69
+ <h2>Overview</h2><div class="docstring">
70
+ <div class="discussion">
71
+ <p>
72
+ :nodoc:
73
+ </p>
74
+
75
+
76
+ </div>
77
+ </div>
78
+ <div class="tags">
79
+
80
+ </div><h2>Defined Under Namespace</h2>
81
+ <p class="children">
82
+
83
+
84
+
85
+
86
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="LDAP/Abandon.html" title="LDAP::Abandon (class)">Abandon</a></span>, <span class='object_link'><a href="LDAP/Error.html" title="LDAP::Error (class)">Error</a></span>, <span class='object_link'><a href="LDAP/ResultError.html" title="LDAP::ResultError (class)">ResultError</a></span>, <span class='object_link'><a href="LDAP/Server.html" title="LDAP::Server (class)">Server</a></span>
87
+
88
+
89
+ </p>
90
+
91
+
92
+
93
+
94
+
95
+ </div>
96
+
97
+ <div id="footer">
98
+ Generated on Mon Sep 13 13:27:15 2010 by
99
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
+ 0.6.0 (ruby-1.9.2).
101
+ </div>
102
+
103
+ </body>
104
+ </html>
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Exception: LDAP::Abandon</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (A)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../LDAP.html" title="LDAP (module)">LDAP</a></span></span>
28
+ &raquo;
29
+ <span class="title">Abandon</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Exception: LDAP::Abandon
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Interrupt</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">Interrupt</li>
62
+
63
+ <li class="next">LDAP::Abandon</li>
64
+
65
+ </ul>
66
+ <a href="#" class="inheritanceTree">show all</a>
67
+
68
+ </dd>
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+ <dt class="r2 last">Defined in:</dt>
79
+ <dd class="r2 last">lib/ldap/server/result.rb</dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+ <p>
87
+ This exception is raised when we need to kill an existing Operation thread
88
+ because of a received abandonRequest or bindRequest
89
+ </p>
90
+
91
+
92
+ </div>
93
+ </div>
94
+ <div class="tags">
95
+
96
+ </div>
97
+
98
+
99
+
100
+
101
+
102
+
103
+ </div>
104
+
105
+ <div id="footer">
106
+ Generated on Mon Sep 13 13:27:16 2010 by
107
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
+ 0.6.0 (ruby-1.9.2).
109
+ </div>
110
+
111
+ </body>
112
+ </html>
@@ -0,0 +1,115 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Exception: LDAP::Error</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (E)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../LDAP.html" title="LDAP (module)">LDAP</a></span></span>
28
+ &raquo;
29
+ <span class="title">Error</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Exception: LDAP::Error
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">StandardError</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">StandardError</li>
62
+
63
+ <li class="next">LDAP::Error</li>
64
+
65
+ </ul>
66
+ <a href="#" class="inheritanceTree">show all</a>
67
+
68
+ </dd>
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+ <dt class="r2 last">Defined in:</dt>
79
+ <dd class="r2 last">lib/ldap/server/result.rb</dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+ <p>
87
+ compatible with ruby-ldap
88
+ </p>
89
+
90
+
91
+ </div>
92
+ </div>
93
+ <div class="tags">
94
+
95
+ </div><div id="subclasses">
96
+ <h2>Direct Known Subclasses</h2>
97
+ <p class="children"><span class='object_link'><a href="ResultError.html" title="LDAP::ResultError (class)">ResultError</a></span></p>
98
+ </div>
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ </div>
107
+
108
+ <div id="footer">
109
+ Generated on Mon Sep 13 13:27:16 2010 by
110
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
+ 0.6.0 (ruby-1.9.2).
112
+ </div>
113
+
114
+ </body>
115
+ </html>
@@ -0,0 +1,241 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Exception: LDAP::ResultError</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (R)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../LDAP.html" title="LDAP (module)">LDAP</a></span></span>
28
+ &raquo;
29
+ <span class="title">ResultError</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Exception: LDAP::ResultError
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName"><span class='object_link'><a href="Error.html" title="LDAP::Error (class)">Error</a></span></span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">StandardError</li>
62
+
63
+ <li class="next"><span class='object_link'><a href="Error.html" title="LDAP::Error (class)">Error</a></span></li>
64
+
65
+ <li class="next">LDAP::ResultError</li>
66
+
67
+ </ul>
68
+ <a href="#" class="inheritanceTree">show all</a>
69
+
70
+ </dd>
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ <dt class="r2 last">Defined in:</dt>
81
+ <dd class="r2 last">lib/ldap/server/result.rb<span class="defines">,<br />
82
+ lib/ldap/server/result.rb</span>
83
+ </dd>
84
+
85
+ </dl>
86
+ <div class="clear"></div>
87
+
88
+ <h2>Overview</h2><div class="docstring">
89
+ <div class="discussion">
90
+ <p>
91
+ ResultError constants from RFC 2251 4.1.10; these are all exceptions which
92
+ can be raised
93
+ </p>
94
+
95
+
96
+ </div>
97
+ </div>
98
+ <div class="tags">
99
+
100
+ </div><h2>Defined Under Namespace</h2>
101
+ <p class="children">
102
+
103
+
104
+
105
+
106
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="ResultError/AdminLimitExceeded.html" title="LDAP::ResultError::AdminLimitExceeded (class)">AdminLimitExceeded</a></span>, <span class='object_link'><a href="ResultError/AffectsMultipleDSAs.html" title="LDAP::ResultError::AffectsMultipleDSAs (class)">AffectsMultipleDSAs</a></span>, <span class='object_link'><a href="ResultError/AliasDereferencingProblem.html" title="LDAP::ResultError::AliasDereferencingProblem (class)">AliasDereferencingProblem</a></span>, <span class='object_link'><a href="ResultError/AliasProblem.html" title="LDAP::ResultError::AliasProblem (class)">AliasProblem</a></span>, <span class='object_link'><a href="ResultError/AttributeOrValueExists.html" title="LDAP::ResultError::AttributeOrValueExists (class)">AttributeOrValueExists</a></span>, <span class='object_link'><a href="ResultError/AuthMethodNotSupported.html" title="LDAP::ResultError::AuthMethodNotSupported (class)">AuthMethodNotSupported</a></span>, <span class='object_link'><a href="ResultError/Busy.html" title="LDAP::ResultError::Busy (class)">Busy</a></span>, <span class='object_link'><a href="ResultError/CompareFalse.html" title="LDAP::ResultError::CompareFalse (class)">CompareFalse</a></span>, <span class='object_link'><a href="ResultError/CompareTrue.html" title="LDAP::ResultError::CompareTrue (class)">CompareTrue</a></span>, <span class='object_link'><a href="ResultError/ConfidentialityRequired.html" title="LDAP::ResultError::ConfidentialityRequired (class)">ConfidentialityRequired</a></span>, <span class='object_link'><a href="ResultError/ConstraintViolation.html" title="LDAP::ResultError::ConstraintViolation (class)">ConstraintViolation</a></span>, <span class='object_link'><a href="ResultError/EntryAlreadyExists.html" title="LDAP::ResultError::EntryAlreadyExists (class)">EntryAlreadyExists</a></span>, <span class='object_link'><a href="ResultError/InappropriateAuthentication.html" title="LDAP::ResultError::InappropriateAuthentication (class)">InappropriateAuthentication</a></span>, <span class='object_link'><a href="ResultError/InappropriateMatching.html" title="LDAP::ResultError::InappropriateMatching (class)">InappropriateMatching</a></span>, <span class='object_link'><a href="ResultError/InsufficientAccessRights.html" title="LDAP::ResultError::InsufficientAccessRights (class)">InsufficientAccessRights</a></span>, <span class='object_link'><a href="ResultError/InvalidAttributeSyntax.html" title="LDAP::ResultError::InvalidAttributeSyntax (class)">InvalidAttributeSyntax</a></span>, <span class='object_link'><a href="ResultError/InvalidCredentials.html" title="LDAP::ResultError::InvalidCredentials (class)">InvalidCredentials</a></span>, <span class='object_link'><a href="ResultError/InvalidDNSyntax.html" title="LDAP::ResultError::InvalidDNSyntax (class)">InvalidDNSyntax</a></span>, <span class='object_link'><a href="ResultError/IsLeaf.html" title="LDAP::ResultError::IsLeaf (class)">IsLeaf</a></span>, <span class='object_link'><a href="ResultError/LoopDetect.html" title="LDAP::ResultError::LoopDetect (class)">LoopDetect</a></span>, <span class='object_link'><a href="ResultError/NamingViolation.html" title="LDAP::ResultError::NamingViolation (class)">NamingViolation</a></span>, <span class='object_link'><a href="ResultError/NoSuchAttribute.html" title="LDAP::ResultError::NoSuchAttribute (class)">NoSuchAttribute</a></span>, <span class='object_link'><a href="ResultError/NoSuchObject.html" title="LDAP::ResultError::NoSuchObject (class)">NoSuchObject</a></span>, <span class='object_link'><a href="ResultError/NotAllowedOnNonLeaf.html" title="LDAP::ResultError::NotAllowedOnNonLeaf (class)">NotAllowedOnNonLeaf</a></span>, <span class='object_link'><a href="ResultError/NotAllowedOnRDN.html" title="LDAP::ResultError::NotAllowedOnRDN (class)">NotAllowedOnRDN</a></span>, <span class='object_link'><a href="ResultError/ObjectClassModsProhibited.html" title="LDAP::ResultError::ObjectClassModsProhibited (class)">ObjectClassModsProhibited</a></span>, <span class='object_link'><a href="ResultError/ObjectClassViolation.html" title="LDAP::ResultError::ObjectClassViolation (class)">ObjectClassViolation</a></span>, <span class='object_link'><a href="ResultError/OperationsError.html" title="LDAP::ResultError::OperationsError (class)">OperationsError</a></span>, <span class='object_link'><a href="ResultError/Other.html" title="LDAP::ResultError::Other (class)">Other</a></span>, <span class='object_link'><a href="ResultError/ProtocolError.html" title="LDAP::ResultError::ProtocolError (class)">ProtocolError</a></span>, <span class='object_link'><a href="ResultError/Referral.html" title="LDAP::ResultError::Referral (class)">Referral</a></span>, <span class='object_link'><a href="ResultError/SaslBindInProgress.html" title="LDAP::ResultError::SaslBindInProgress (class)">SaslBindInProgress</a></span>, <span class='object_link'><a href="ResultError/SizeLimitExceeded.html" title="LDAP::ResultError::SizeLimitExceeded (class)">SizeLimitExceeded</a></span>, <span class='object_link'><a href="ResultError/StrongAuthRequired.html" title="LDAP::ResultError::StrongAuthRequired (class)">StrongAuthRequired</a></span>, <span class='object_link'><a href="ResultError/Success.html" title="LDAP::ResultError::Success (class)">Success</a></span>, <span class='object_link'><a href="ResultError/TimeLimitExceeded.html" title="LDAP::ResultError::TimeLimitExceeded (class)">TimeLimitExceeded</a></span>, <span class='object_link'><a href="ResultError/Unavailable.html" title="LDAP::ResultError::Unavailable (class)">Unavailable</a></span>, <span class='object_link'><a href="ResultError/UnavailableCriticalExtension.html" title="LDAP::ResultError::UnavailableCriticalExtension (class)">UnavailableCriticalExtension</a></span>, <span class='object_link'><a href="ResultError/UndefinedAttributeType.html" title="LDAP::ResultError::UndefinedAttributeType (class)">UndefinedAttributeType</a></span>, <span class='object_link'><a href="ResultError/UnwillingToPerform.html" title="LDAP::ResultError::UnwillingToPerform (class)">UnwillingToPerform</a></span>
107
+
108
+
109
+ </p>
110
+
111
+ <h2>Constant Summary</h2>
112
+
113
+ <dl class="constants">
114
+
115
+ <dt id="N_TO_CLASS-constant" class="">N_TO_CLASS =
116
+ <div class="docstring">
117
+ <div class="discussion">
118
+ <p>
119
+ Reverse lookup: so you can do raise LDAP::ResultError[53]
120
+ </p>
121
+
122
+
123
+ </div>
124
+ </div>
125
+ <div class="tags">
126
+
127
+ </div>
128
+ </dt>
129
+ <dd><pre class="code"><span class='lbrace'>{</span>
130
+ <span class='int'>53</span> <span class='op'>=&gt;</span> <span class='const'>UnwillingToPerform</span><span class='comma'>,</span>
131
+ <span class='comment'># FIXME: please fill in the rest
132
+ </span><span class='rbrace'>}</span></pre></dd>
133
+
134
+ </dl>
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <h2>
146
+ Class Method Summary
147
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
148
+ </h2>
149
+
150
+ <ul class="summary">
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(n) </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <span class="summary_desc"><div class='inline'><p>
169
+ FIXME: please fill in the rest.
170
+ </p>
171
+ </div></span>
172
+
173
+ </li>
174
+
175
+
176
+ </ul>
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ <div id="class_method_details" class="method_details_list">
188
+ <h2>Class Method Details</h2>
189
+
190
+
191
+ <div class="method_details first">
192
+ <p class="signature first" id="[]-class_method">
193
+
194
+ + (<tt>Object</tt>) <strong>[]</strong>(n)
195
+
196
+
197
+
198
+ </p><div class="docstring">
199
+ <div class="discussion">
200
+ <p>
201
+ FIXME: please fill in the rest
202
+ </p>
203
+
204
+
205
+ </div>
206
+ </div>
207
+ <div class="tags">
208
+
209
+ </div><table class="source_code">
210
+ <tr>
211
+ <td>
212
+ <pre class="lines">
213
+
214
+
215
+ 66
216
+ 67
217
+ 68</pre>
218
+ </td>
219
+ <td>
220
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/result.rb', line 66</span>
221
+
222
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span> <span class='lparen'>(</span><span class='id n'>n</span><span class='rparen'>)</span>
223
+ <span class='kw'>return</span> <span class='const'>N_TO_CLASS</span><span class='lbracket'>[</span><span class='id n'>n</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>self</span>
224
+ <span class='kw'>end</span></pre>
225
+ </td>
226
+ </tr>
227
+ </table>
228
+ </div>
229
+
230
+ </div>
231
+
232
+ </div>
233
+
234
+ <div id="footer">
235
+ Generated on Mon Sep 13 13:27:16 2010 by
236
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
+ 0.6.0 (ruby-1.9.2).
238
+ </div>
239
+
240
+ </body>
241
+ </html>