16,004,653 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Korathu123 (Top 9 by date)
Korathu123
29-Dec-15 2:47am
View
The above solution worked. But if the output in case is not alphanumeric (I mean simply varchar) there will be casting error.
Korathu123
15-Dec-15 7:37am
View
I need a regular expression suiting the same need
Korathu123
18-Nov-15 8:35am
View
Deleted
I want to set the same code wise.
Korathu123
2-Nov-15 9:15am
View
i tried the same but I am not getting error Index out of range. In mine I have root node say Test7 and child nodes are cn=OrgPerson,cn=Person,o=oid etc. I want to fetch them.
I tried with
searchRoot = new DirectoryEntry("LDAP://" + "nestit-283" + ":" + "389" + "/" + "dc=maxcrc,dc=com", "cn=Manager,dc=maxcrc,dc=com", "secret", AuthenticationTypes.None);
domain = new DirectoryEntry("LDAP://" + searchRoot.Properties["defaultNamingContext"][0]);
Korathu123
30-Oct-15 6:02am
View
I want to fetch all user certificate values in all the nodes if any
foreach (SearchResult r in result)
{
string CertificateAttributeType="userCertificate:binary";
if (r.Properties.Contains(CertificateAttributeType))
{
Common.WriteEFTSLog("EFTS:Has "+CertificateAttributeType+" ");
if (r.Properties[CertificateAttributeType].Count > 0)
{
Common.WriteEFTSLog("EFTS:Certificate Exists there");
for (int m = 0; m < r.Properties[CertificateAttributeType].Count; m++)
{
Byte[] b = (Byte[])r.Properties[CertificateAttributeType][m];
//Convert byte data of User Certificate Fetched to the Certificate file and add it to the Certificate Store
//Set a certificate file Path configured in App.config to which fetched Byte array is passed
string cerFilePath = ConfigurationSettings.AppSettings["CertFilePath"].ToString();
//Create the Certificate File from Byte Array data
bool CertFileCreation = ByteArrayToFile(cerFilePath, b);
if (CertFileCreation == true)
{
Common.WriteEFTSLog("EFTS:Certificate File Created from Byte Array");
// Convert the Filename to an X509 Certificate
X509Certificate2 cert = new X509Certificate2(cerFilePath);
// Get the server certificate store and pass to Personal Certificate Store(Check with Certmgr.msc in Run)
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadWrite);
//Add the Certificate File to Windows Cetificate Store
store.Add(new X509Certificate2(X509Certificate2.CreateFromCertFile(cerFilePath)));
store.Close();
Common.WriteEFTSLog("EFTS:Certificate File Added to the Store");
}
}
}
else
{
Common.WriteEFTSLog("EFTS:No Certificate Exists");
}
}
Korathu123
28-Oct-15 0:55am
View
Tried Above Code to add certificate to the LDAP Server.
Here in the above code the method Add and Commmit Changes aren't there for the object of Searchresultcollection.
Korathu123
28-Oct-15 0:49am
View
Actually Certificate Addition to the LDAP Server will be done by the Client in real time case.What But to test locally I want to store a certificate manually or code wise to the LDAP Server. Then I need to fetch the certificate Name from the LDAP Server.
Korathu123
27-Oct-15 6:38am
View
I want to work using LDAP server itself code wise.
Korathu123
13-Oct-15 9:21am
View
Both Outward/Inward Process happens quite fast. Tried Asynchronously too but no issue was seen.There are bulk data present too to fetch to both Outward/inward Grid.
Show More