|
Hi Dave Kreskowiak
thanks for reply
my problem solved.
Many thanks.
|
|
|
|
|
hi All,
Suppose GC consists of a number of forests. with ldap search, i found a record in the GC and now want to update this record, but attribute which i want to update is not presented in GC.
how to identify forest this record belongs to and what ldap port i must use to update this record in the forest?
modified on Friday, January 11, 2008 10:46:33 AM
|
|
|
|
|
GC, forest? I don't understand what you are taking about. Are you refering to garbage collection? Give a little more detail to your question
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Hi Justin, good catch for Indian
GS is Global Catalog (GC). So GC contains info from number of Active Directory forests.
thanks,
max
|
|
|
|
|
You may wnat to actually say you're working with Active Directory and "Global Catalog" instead of GC. In .NET, GC normally stands for "Garbage Collector".
The Global Catalog does NOT hold every property of every object. It holds a small subset of properties for all objects.
Your command text probably starts with "GC://..." , correct?? Well, to get at the full record, you have to start with "LDAP://... ". The port number is there to talk to either the unsecured version of LDAP, or the secured version. What you're doing on that connection has nothing to do with the port number you use. You normally don't need to give it the port number since AD uses the stadnard LDAP ports, 389 for normal connections and 636 for SSL secured.
But, to find the object, all you have to do is return the distiguishedName of the object your looking for from the Global Catalog. The distiguishedName will tell you the full path to the object, including which domain the object is in. You can then use that you get the object from LDAP so you can modify all the properties you want.
|
|
|
|
|
Dave, you're right! i work with Active Directory and Global Catalog.
My command text always starts with "LDAP://..." but port is 3268 - port for GC.
i know that 389 port is default port for LDAP. but aslo i know that this port can be changed.
LDAP query i read from 3rd party programm and i don't know exactly would this query will point to GC or LDAP. So if query points to GC i want to find this record tin its forest. Or just LDAP://CN=<distiguishedname> will point to it?
|
|
|
|
|
robot_rock wrote: LDAP query i read from 3rd party programm and i don't know exactly would this query will point to GC or LDAP.
GC queries always start with GC:// , so if you're getting this a 3rd party app and it uses LDAP:// to begin it's command string, chances are it's not comming from the Global Catalog.
If you're sure the result is comming from the Global Catalog, and you get the distinuishedName back from the query, that name will point directly to the object in question if you use it in another LDAP command string:
LDAP:
Keep in mind though when you bind to an object, you only immediately get back some basic properties of the object. You need to tell it to retrieve either all of the remaining properties, or just specify which properties you need. After that, you can modify them and write the changes back to AD.
|
|
|
|
|
ok Dave.
as i know LDAP://distinguishedName/yourParameterList will only work if machine, from what i'm binding to object, belongs to this forest, otherwise i must specify machine name and port in LDAP query, isn't it?
thanks,
max
|
|
|
|
|
If you use the distinguishedName, the domain information is already supplied and any controller in that domain can service the request.
No, you don't have to specify the port, unless those domain controllers are not using the standard port numbers.
|
|
|
|
|
Dave, thank you very much. i'll try this.
thanks
max
thanks,
max
|
|
|
|
|
but, one more question - if these DCs are using non-default ports, how should i connect them?
thanks,
max
|
|
|
|
|
My Question is: Which C# Controls will use realize the graphic website map? at Vs2003 or VS2005 development tool.
the controls can show the Static or 3D GRAPHIC ?
Question description: When you scan any website map, search the website map, and than show the graphic(static or 3D) website map?
Thanks
modified on Friday, January 11, 2008 10:47:21 AM
|
|
|
|
|
You asked this question yesterday. Do you really think that it's likely that you'll get a reply today if you didn't get one yesterday. Part of the problem is that your post makes no sense in any way. I can read the words, but they don't form a coherent sentence, and you haven't told us what your problem is (apart from an inability to think clearly).
Here on CodeProject we'll help you with specific problems. We won't actually write your applications for you.
|
|
|
|
|
Thank you, I update the question, I just need some help.
|
|
|
|
|
Pete O'Hanlon wrote: you haven't told us what your problem is (apart from an inability to think clearly).
Kind of early in the year to be setting the bar so high for Reply of the Year Award isn't it?
|
|
|
|
|
Thanks, I don't know how to use C# realize the graphic.I never use C# do the graphic(static or 3D) so,This is my question., I'm looking for a help.
|
|
|
|
|
led mike wrote: Kind of early in the year to be setting the bar so high for Reply of the Year Award isn't it?
It sets a standard for me to try and beat.
|
|
|
|
|
I don't think any of the standard components can do this. You could look at the available commercial charting/data visualization libraries. If none of them can provide anything useful, or you can't afford their sticker prices you'll have to write your own visualization control.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Hello All,
just few month ago started to program in C#. It's a great world there!
But I have quite some code written in C/C++, which I want to re-use in my C# development.
In C I have a function exported from a DLL. The function is declared as
EXPORT int my_foo(my_type **Devices, int *nrDevs);<br />
That library is compiled with calling convention Cdecl
I need to call that function in my C# code.
I do the following...
<br />
internal static class MyGreatFunctions<br />
{<br />
[DllImport("my_good_old_stuff.dll", CallingConvention = CallingConvention.Cdecl)]<br />
internal static extern int my_foo(ref IntPtr pDevs, ref int nDevs);<br />
}<br />
<br />
public class MyClass<br />
{<br />
public MyClass()<br />
{<br />
int nDevs = 0;<br />
IntPtr pDevs = IntPtr.Zero;<br />
int r = MyGreatFunctions.my_foo(ref pDevs, ref nDevs);<br />
}
When my_foo is called I got AccessViolationException "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The other functions (with no double pointers) are called fine. What do I miss here? Why do I get this AccessViolationException? Please! Help!!
PS
It's WinXP Pro Sp2
.NET 2.0
|
|
|
|
|
Hi
have you tried the InAttribute and OutAttribute ?
i'm not sure if they're really required in order to work properly but it's worth a try...
<br />
[DllImport("my_good_old_stuff.dll", CallingConvention = CallingConvention.Cdecl)]<br />
internal static extern int my_foo([In,Out] ref IntPtr pDevs, ref int nDevs);<br />
to find out where the error does occur it might be an idea to do
cout outputs in your dll saying what' you're doing and call the dll then from a console app...
greets
m@u
|
|
|
|
|
thanx!!
In, Out didn't help (but I learned something new)
but cout'ing helped.
BTW, does anybody know how to debug managed/unmanaged code?
I just want to step-in (F11) into unmanaged code from managged... (call using PInvoke)
Regards,
Alex
|
|
|
|
|
I never really tried, but i could imagine, if you add your c++ project to the whole solution and set a breakpoint in your c++ method you might be able to do step-in..
without breakpoint it 's possible that it won't step-in because there's much code between without loaded symbol - information. As far as i know, visual studio can not do step in if there's code between calls that has no symbol informations...
|
|
|
|
|
|
Hi!
I know your IAXClient very well! It's awesome masterpiece!
I don't use it. I break it apart - it's my hobby kidding...
btw, libiaxclient interface has changed. I "hybridized" new iaxclient, with your code and existing DotNetWrapper stuff. just for fun, since I don't earn by C# codding...
Kind regards,
Alex
|
|
|
|
|
i have written window service in C#. After installation when i try to start the service. Following error occur:
"Error 1053: The service did not respond to the start or control request in timely fashion."
In my Onstart method, i am making only one thread and starting it.
And if i try to uninstall the service following exception thrown:
"Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Docu
ments and Settings\Administrator\Desktop\GG\GG\GameGetter.exe' or one of its dep
endencies. The module was expected to contain an assembly manifest.."
Any idea how can i run that service?
|
|
|
|