since monday, i'm working as an intern in a company (final year at college)
i need to make a c#project working with a ldap database
i've seen there a library made by novell that can be used.
there's also a built-in lib "System.DirectoryServices.Protocols" specially made for ldap, but there's not much documentation for it.
Has anyone worked with that lib before and can get me started or link me a place that can.
Thanks in advance.
Here is link on Directory Services description in MSDN:
http://msdn.microsoft.com/en-us/library/system.directoryservices.aspx
Related
Is it possible to take a set of published web files and convert them back into a solution? I say this because a solution has been lost from our system, and the only files that can be found are the actual published files. I have looked around and can't seem to find anything on the matter, any help would be great!
Thanks a lot
For a Web Application the source code is compiled into DLL's. As far as I know there is no easy way to reverse engineer a Web Application back to source code. If you wish to do further research, use search terms such 'reverse engineer web application DLL', or 'retrieve source code from DLL' etc. Good luck!
I am writing a c# winform desktop application that is in contact with a MYSQL database. Of course I cannot leave the database credentials out in the open hard-coded into the application, so where can I store this information so that a nosey customer will have an extremely tough time locating it?
I understand that if someone is very determined to find this information they will most likely do just that, but I want to be able to hide these credentials from the average Joe, leaving me with some peace of mind at the end of the day.
If your answer is to encrypt the credentials, and hard code the encrypted values into the program, please explain which encryption methods to use. Furthermore, where would I store the necessary decryption/encryption keys?
I very much look forward to some interesting responses.
Thank you,
Evan F.
http://www.ezzylearning.com/tutorial.aspx?tid=8067328
Store it in App.Config File.
Check out above tutorial.
You can also check this good article by Microsoft which teach you how to encrypt and retrieve.
http://msdn.microsoft.com/en-us/library/ms254494.aspx
One of Previous Posts
if you have installed Microsoft Enterprise Library, you can easily encrypt/decrypt using its tool as mentioned in this link
http://davidhayden.com/blog/dave/archive/2006/01/23/2744.aspx
http://davidhayden.com/blog/dave/archive/2006/03/02/2870.aspx
Also, after the installation, open the project in studio and right click on the web.config or app.config and you will see the option for the configuration though Enterprise Library. This option is available in Visual Studio 2005 but I cannot see this in Visual Studio 2008 yet. Not sure whether its not compatible with 2008 or I have to follow some installation sequences. I will let you guys know if I come across with any solutions.
This is the link which explains how to work with encryption within studio http://www.pnpguidance.net/Post/EnterpriseLibrary3VisualStudioIntegratedConfigurationEditor.aspx . Read, read & read...
Keep in mind that once you open the .config file you have luxuary of ecrypting each pieces/blocks seperately. Thats the beatuy of it.
For your information I am using Enterprise Library 3.1 which is the latest version and has tonnes of tools that makes your life a breeze. You can download this library at http://msdn2.microsoft.com/en-us/library/aa480453.aspx. Also, look forward for 4.0 at http://www.codeplex.com/entlib
Bottom line you can search google along these lines and I am sure it will give you the whole process.
I found this tease of a code snippet:
http://codepaste.net/m6xsdi
slickGrid.AddColumn(
Column.ForId("riga")
.Named("Riga")
.ForField("id")
.WithEditorFunction("TextCellEditor")
.WithSetValueHandler("updateItem")
.WithBehavior(Column.Behavior.selectAndMove)
).AddColumn(
Column.ForId("codice")
.Named("Codice")
.ForField("code")
.WithEditorFunction("TextCellEditor")
.WithSetValueHandler("updateItem")
.WithBehavior(Column.Behavior.selectAndMove)
);
It would be seriously terrific if there was a C# wrapper for SlickGrid that uses this fluent syntax, but I can't seem to find one. Google comes up blank. Is this some proprietary wrapper or am I just not looking in the right places?
Was a working prototype (written at night ;) for a demo. Give me few days and I'll try to share the code on Codeplex or GitHub
Update: published http://lucilla.codeplex.com/SourceControl/changeset/changes/7a72573dc846
You'll find a sample mvc app and the helper prototype.. hope to publish the whole framework by the end of the year (if you wonder what the lib folder is for..)
Can anyone suggest some tutorials for beginners that utilize the C# language to access Active Directory? Thanks.
Have a look at this Code Project article and this MSDN code sample collection. The API is actually really simple - the hard part is finding the desired information in the directory. From my (limited) experience the (naming) schema of the standard ActiveDirectory is not that consistent. Active Directory Explorer might be very helpful at this point.
In my win forms C# app, I want to be able to add spell check functionality. But, I want to do it my own way, and NOT use any other components. All I need is just an online service where I can send a request or something and it tells me whether or not the word i sent was spelled correctly.
Preferred but not required: The ability for that online service to also send back suggestions.
Personally, I wonder why you want only online access...what if you lose connection? Also, most online accesses come with restrictions.. which you might hit sooner than you think during debugging.
If you were to use WPF, I'd suggest using the SpellCheck Class.
Since you specified Windows.Forms, you might try the NetSpell library for offline access. You can also try and use Microsoft Word's spellchecker, but you might not have it installed on the machine (or use Linux & Mono)
If you persist on using online access, you can use Yahoo, as Giovanni Galbo says. It's been done in C# before.
A quick google search turned up this:
Search Web Services: Spelling Suggestion
This is not c#/.NET specific. Its a simple REST service provided by Yahoo!. It looks like they do limit you to 5,000 queries per day for free and I'm not sure if Yahoo! lets you upgrade to a pay service.