7290e528fadc274bced60313a4905059d812a8d6
[mono.git] / mcs / class / System.DirectoryServices / System.DirectoryServices / ChangeLog
1 2009-02-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
2
3         - The PropertyValueCollection class doesn't mark its data as dirty/changed in
4           - this[int index] setter
5           - Insert()
6           - Remove() 
7           - Value setter
8         The DirectoryEntry class doesn't handle the clearing of an attribute (see
9         CommitEntry())
10         Patch from Juraj Skripsky that fixes bug #416985.
11
12 2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>
13
14         * DirectoryEntry.cs: Use typeof(LdapModification) instead of
15         Type.GetType and actually use the value afterward.
16         [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
17         * SearchResultCollection.cs: Avoid infinite recursion in 
18         Contains(SearchResult).
19         [Found using Gendarme BadRecursiveInvocationRule]
20
21 2007-05-21  Adar Wesley <adarw@mainsoft.com>
22
23         * DirectoryEntry.cs: added missing methods InvokeGet, InvokeSet.
24
25 2006-12-28  Jon Larimer <jlarimer@gmail.com>
26
27         * DirectorySearcher.cs: When using
28         System.DirectoryServices.DirectorySearcher to query a Windows
29         Active Directory Server, the results will almost always contain
30         referal nodes. These can probably be ignored, as there are also
31         non-referal responses.
32
33         With the below patch, the Mono DirectorySearcher can be used to
34         query Windows AD servers.
35
36         Fixes #80103.
37         
38 2005-05-12  Boris Kirzner <borisk@mainsoft.com>
39         * DirectoryEntry.cs, DirectorySearcher.cs: fix object disposing.
40
41 2005-06-11  Boris Kirzner <borisk@mainsoft.com>
42         * DirectoryEntry.cs: fixes for RefreshCache()
43                 -Property names should be sent to server if only particular properties
44                 need to be updated.
45                 -Refreshing all the properties should work with separate list,
46                 so the original properties values are not damaged if the refresh
47                 fails for some reason.
48
49 2005-30-10  Boris Kirzner <borisk@mainsoft.com>
50         * DirectoryEntries.cs: fix for null base dn.
51         * DirectorySearcher.cs: use server root authentication type for binding.
52
53 2005-28-07  Boris Kirzner <borisk@mainsoft.com>
54         * DirectoryEntry.cs: pass AuthenticationType as a parameter for
55         LdapConnection.Bind.
56
57 2005-06-19 Boris Kirzner <borisk@mainsoft.coim>
58         * DirectorySearcher.cs: 
59                 - Use ADsPath property (always represents an actual url) 
60                 instead of Path (may be null or empty string).
61                 - Use PropertyNamesOnly property while perfoming search, so property 
62                 values retrieved only when needed.
63                 - Create parent path in more clean way.
64         * DirectoryEntry.cs:
65                 - Use ADsPath property (always represents an actual url) 
66                 instead of Path (may be null or empty string).
67                 - InitEntry takes special care about rootDse entries.
68                 - Path return empty string if assigned to null.
69                 - Added ADsPath property. This is an "actual" entry path on the server.
70                 If user does not specifies a path, it is resolved using rootDse 
71                 server entry properties. We need this since the user-specified Path 
72                 property should never change.
73                 - Added GetProperties,SetProperties and LoadProperties methods 
74                 to handle internal properties load and assignment.
75                 - Added DefaultHost and DefaultPort properties, so user can specify the
76                 default LDAP server information using app config. If user does not 
77                 specify it, the localhost:389 is the default.
78                 - Added InitToRootDse method - initializes current entry to specified 
79                 server rootDse entry.
80                 - CheckEntry takes special care about rootDse entries.
81                 - CommitEntry rewrited to use .NET style iteration. In addition, 
82                 the method uses entry peroperties whout enforsing their reload.
83                 - Implemented RefreshCache methods. 
84                 - Added method GetLdapUrlString, returns LDAP URL string representation
85                 that omits default port 
86                 (i.e. ldap://server/dn instead of ldap://server:389/dn), 
87                 as .NET does.
88         * PropertyValueCollection.cs: removed redundant MonoTodo attributes.
89         * SearchResult.cs: if underlined result properties collection is empty, 
90         do not try to load a properties from it.
91                 
92 2005-06-14  Boris Kirzner <borisk@mainsoft.com>
93         * DirectorySearcher.cs : AdsPath property should not appear in the query, but it still should appear in the SearchResult properties (by initialization from result entry path).
94
95 2005-03-31  Boris Kirzner <borisk@mainsoft.com>
96         * DirectoryEntry.cs :
97                 - Implemented UsePropertyCache.
98                 - Refresh entry after Rename and MoveTo.
99                 - CommitChanges : do not send request to server if no properties changed. Drop new flag after committing newly created entry.
100                 - Disconnect only if connected in Close(). Clean up Dispose().
101                 - Removed unnecessary console output.
102         * PropertyCollection.cs : Hold reference to parent DirectoryEntry.
103         * PropertyValueCollection.cs : Hold reference to parent DirectoryEntry. Call parent's CommitDeferred on collection changes. 
104
105 2005-03-31  Boris Kirzner <borisk@mainsoft.com>
106
107         * DirectorySearcher.cs :
108                 - Use common TimeSpan object to initialize properties default values.
109                 - DoSearch uses SizeLimit and ServerTimeLimit. Do not throw if sie limit or time limit occurs on the server.
110                 - Construct ADsPath property from resulting entry path.
111                 - Implemented Dispose method.
112
113 2005-03-28  Boris Kirzner <borisk@mainsoft.com>
114
115         * DirectoryEntries.cs : 
116                 - Removed unnecessary console output.
117         * SearchResult.cs :
118                 - Initialize Path property in constructor.
119                 - Removed unnecessary console output.
120
121 2005-03-22  Boris Kirzner <borisk@mainsoft.com>
122
123         * DirectorySearcher.cs : 
124                 - ClientTimeout and ServerPageTimeLimit initialized to 1 second.
125                 - SizeLimit initialized to 0.
126                 - Setting SizeLimit to negative value throws an exception.
127                 - Added private variable for ServerTime Limit.
128                 - Avoid infinite loop in CacheResults.
129                 - Removed emptycol, search result lazy evaluated intead of this.
130                 - If the search did not return results, FindOne() should returns null.
131                 - ADsPath property always loaded, or created from DN.
132
133 2005-03-22  Boris Kirzner <borisk@mainsoft.com>
134
135         * DirectoryEntries.cs : When adding new entry, do not set "objectclass" 
136         property to include schemaClassName value.
137
138 2005-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
139
140         * DirectoryEntry.cs: username and password are now initialized to null.
141         Patch by Boris Kirzner (Mainsoft).
142
143 2005-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
144
145         * PropertyValueCollection.cs: the Value property for an empty collection
146         is now null and setting Value to null clears the collection. Patch by
147         Boris Kirzner (Mainsoft).
148
149 2005-01-26  Atsushi Enomoto  <atsushi@ximian.com>
150
151         * DirectoryEntry.cs, DirectoryEntries.cs :
152           eliminate "throw new Exception".
153
154 2004-09-10  Sebastien Pouliot  <sebastien@ximian.com>
155
156         * DirectoryServicesPermission.cs: Completed TODO.
157         * DirectoryServicesPermissionAttribute.cs: Added path validation and
158         enable the creation of unrestricted permissions.
159         * DirectoryServicesPermissionEntry.cs: Add internal method to return 
160         an ResourcePermissionBaseEntry instance.
161         * DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
162         of elements with the base permission class (required to enable Copy).
163
164 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
165
166         * DirectoryServicesPermission.cs: renamed field to match MS.NET
167         * DirectoryServicesPermissionEntry.cs: fixed serialization 
168         compatibility with MS.NET
169         * DirectoryServicesPermissionEntryCollection.cs: marked serializable,
170         added TODO for serialization compatibility
171         * ReferralChasingOption.cs: changed enum field values to match MS.NET
172
173 2004-06-03  Gert Driesen <drieseng@users.sourceforge.net>
174
175         * DirectoryEntries.cs: flagged field private to fix public API
176         * DirectoryEntry.cs: added protected override for Dispose, marked
177         properties TODO
178         * DirectoryServicesPermissionEntryCollection.cs: added stubs for
179         missing protected methods
180         * PropertyCollection.cs: flagged field private to fix public API
181         * PropertyValueCollection.cs: removed empty extra methods, added
182         stub for missing methods to fix public API
183         * SearchResult.cs: removed unused local variable
184         * SearchResultCollection.cs: flagged field private to fix public
185         API, added missing property Dispose method and finalizer
186
187 2004-05-16  Gert Driesen <drieseng@users.sourceforge.net>
188
189         * DirectoryServicesPermission.cs: marked sealed, added
190         Serializable attribute
191         * SearchResultCollection: made Handle public
192
193 2004-05-14  Raja R Harinath  <rharinath@novell.com>
194
195         * SearchResultCollection.cs: Add a few more stubs.
196         * SchemaNameCollection.cs: Likewise.
197
198         * DirectoryServicesPermission.cs: Fix typo.
199         * SchemaNameCollection.cs: Revert.  Add MonoTODO attributes.
200
201 2004-05-14  Raja R Harinath  <rharinath@novell.com>
202
203         * DirectoryEntries.cs (SchemaFilter): New stub.
204         * DirectoryEntry.cs: Add missing [MonoTODO] to NotImplemented
205         classes.  Remove DesignerCategory attribute.
206         * DirectorySearcher.cs: Likewise.
207         * PropertyValueCollection.cs (AddRange([object[]): Don't go into
208         an infinite loop.
209         (AddRange(PropertyValueCollection)): New.
210         (CopyTo): New.
211         * ResultPropertyCollection.cs (ResultPropertyCollection): Make
212         internal.
213         (CopyTo): New.
214         * SchemaNameCollection.cs: Implement.
215         * SortOption.cs (PropertyName, Direction): Add DSDescription and
216         DefaultValue attributes.
217         * DirectoryServicesPermission.cs: New file.
218         * DirectoryServicesPermissionAttribute.cs: Likewise.
219         * DirectoryServicesPermissionEntry.cs: Likewise.
220         * DirectoryServicesPermissionEntryCollection.cs: Likewise.
221         * TODOAttribute.cs: Likewise.
222
223 2004-01-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
224
225         * ChangeLog: Added
226         * AssemblyInfo.cs: Removed
227         * DirectoryEntry.cs: Added attributes, fixed warning, stubbed missing
228         * DirectorySearcher.cs: Added attributes, stubbed missing
229         * DirectoryServicesPermissionAccess.cs: Added, implemented
230         * DSDescriptionAttribute.cs: Added, implemented
231         * DSDescriptionAttribute.cs, Added implemented