16,017,272 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 mayankkarki (Top 53 by date)
mayankkarki
25-Jun-14 1:00am
View
Sorry if I not mentioned http://, but its there in the code I am running.
mayankkarki
4-Mar-14 9:47am
View
If that's vague, why I get something useful on stackoverflow.
mayankkarki
4-Mar-14 8:27am
View
I never get satisfactory answer on this site. Just a waste of time.
mayankkarki
13-Feb-14 6:08am
View
Anyone there to help?
mayankkarki
30-Aug-13 7:20am
View
I needed for winrt js project. No one is working.
mayankkarki
3-Aug-13 6:22am
View
I have already done so much Google but nothing found useful.
mayankkarki
22-Jul-13 9:00am
View
Every link redirects to component one.
Is there any free way?
mayankkarki
18-Jun-13 8:40am
View
by using above code I am creating excel document. Now I want to create Pdf with same format.
mayankkarki
18-Jun-13 6:52am
View
Reason for my vote of 5 \n I am unknown of this amazing functionality.
mayankkarki
3-May-13 1:56am
View
That's the basic requirement of project to create a portable libarary.
mayankkarki
30-Apr-13 16:15pm
View
IATA code is three character string and bing map used langitude and longitude. So is there any way that I supply code to bing map.
mayankkarki
12-Apr-13 9:33am
View
I read the provisioning api documentation
mayankkarki
15-Mar-13 1:26am
View
Thanks.My app is source not target.
mayankkarki
13-Mar-13 2:25am
View
I added connect timeout but now getting different error "connection terminated unexpectedly.". I tried with different versions of .net connectors 6.1.6, 6.3.9 and 5.1.7 but getting same error message.
mayankkarki
12-Mar-13 5:09am
View
I already added reference of MySql.Data
mayankkarki
7-Mar-13 6:36am
View
Thanks using background uploader is awesome
mayankkarki
7-Mar-13 4:25am
View
Thanks for reply but I asked question to upload a file.
mayankkarki
6-Jan-13 12:26pm
View
I used LdapConnection class and everything is complete. So now I cannot switch to PrincipalContext.
mayankkarki
6-Jan-13 12:16pm
View
Help me on this. "must change password at next log in". I cannot allow user to change password without authentication.
mayankkarki
6-Jan-13 11:16am
View
@jbl Hi can you help me
mayankkarki
5-Jan-13 5:37am
View
Hi,
Now I don't know how to implement this logic to scroll two listview simultaneously.
mayankkarki
19-Dec-12 0:25am
View
Can you tell me the the way I can do this.
mayankkarki
18-Dec-12 11:02am
View
Its become more critical in case of user must change password at next logon.
mayankkarki
18-Dec-12 11:01am
View
Deleted
change password comes after user authentication. I only want to authenticate user before change password
mayankkarki
18-Dec-12 9:41am
View
Now problem is same that I can only check username. How would I know that password is also correct.
mayankkarki
18-Dec-12 9:27am
View
I am working on a website that allow user to change password. There is a login page in which user enters username and password, and I perform authentication.
mayankkarki
18-Dec-12 9:21am
View
Its not working for change password at next logon also. So without user authentication how I can allow user to change password.
mayankkarki
18-Dec-12 8:32am
View
Thanks
I have a admin account but with that I can only check username existence but not user password
mayankkarki
5-Dec-12 5:33am
View
Just to save my resources and users time. Because server won't allow to save a password that doesn't meet its complexity requirements. So its better before getting error I give a message to user.
mayankkarki
17-Nov-12 7:24am
View
There is no change in alignment with change of windows because its running on browser. This is very old issue with .net that it shows different layouts in diff. browser. you have to design it properly using tables and div.
mayankkarki
7-Nov-12 1:06am
View
Hi,
One more thing I found. If I use directoryEntry and get nTSecurityDescriptor property then it is of type "System.__ComObject" and when I am using directoryAttrbute in searchResponse of ldapConnection then I am getting System.Byte[].
mayankkarki
6-Nov-12 1:43am
View
Hi,
My problem is that I am using LDAPconnection class and connecting over ssl. Anyway I manage to get nTSecurityDescriptor value but now getting error
"Unable to cast object of System.Byte[] to ActiveDs.IADsSecurityDescriptor"
I am using code like this
SearchResponse response = (SearchResponse)connection.SendRequest(request);
IADsSecurityDescriptor sd = (IADsSecurityDescriptor)response.Entries[0].Attributes["nTSecurityDescriptor"][0];
mayankkarki
16-Oct-12 8:22am
View
This is the problem that I don't know which attribute is used for users cannot change password.
mayankkarki
16-Oct-12 7:48am
View
Can you show me how to do this. Its urgent.
mayankkarki
16-Oct-12 7:30am
View
I print the values of all attributes but didn't find any usefull one.
mayankkarki
16-Oct-12 5:18am
View
All attributes values are there. I used some attributes like this DirectoryAttribute userAccountControl = response.Entries[0].Attributes["useraccountcontrol"];
But don't know which attribute to used for user cannot change password.
mayankkarki
16-Oct-12 4:59am
View
I didn't understand it. Can you show me how to implement.
mayankkarki
16-Oct-12 2:46am
View
Thanks, I updated the question.
mayankkarki
19-Sep-12 7:42am
View
There is help for soap api only. I want to use rest api just by sending request and getting response.
mayankkarki
27-Aug-12 3:34am
View
Thanks for reply,
But I didn't get succeed.I tried to connect with michigan open ldap server
private string sDomain = "LDAP://ldap.itd.umich.edu:389";
private string sDefaultOU = "ou=System Groups,ou=Groups,dc=umich,dc=edu";
private string sServiceUser = "cn=Directory Manager,o=University of Michigan,c=us";
private string sServicePassword = "";
First I use this and works perfectly
DirectoryEntry de = new DirectoryEntry(sDomain + "/" + sDefaultOU, sServiceUser, sServicePassword,AuthenticationTypes.ServerBind);
DirectorySearcher ds = new DirectorySearcher(de);
SearchResult sr = ds.FindOne();
But with principalcontext got same error "server could not be contacted."
PrincipalContext oPrincipalContext = new PrincipalContext(ContextType.Domain, sDomain,sDefaultOU,ContextOptions.ServerBind|ContextOptions.Negotiate, sServiceUser, "");
Is there something missing?
mayankkarki
16-Aug-12 3:06am
View
Hi,
I tried using this,
DirectoryEntry dEntry=new DirectoryEntry("ldap://localhost:389/cn=mayank,ou=valeteck,ou=system","cn=mayank","password");
Not get any result.
but if I provide username and password of system I get object but the question is same how to check userPassword property beacuse the value it return in hashed format.
mayankkarki
14-Aug-12 8:57am
View
Thanks,
I am coding like this,
DirectoryEntry dEntry=new DirectoryEntry("ldap://localhost:389/cn=mayank,ou=valeteck,ou=system","cn=mayank","password");
But I didn't get any native object.
mayankkarki
14-Aug-12 8:39am
View
Thanks,
But system and cn='mayank' have different password.If I create directory entry object with password of cn I didn't get authenticate.I have to check that the password use entered is correct and match with user's password in ldap.
mayankkarki
8-Aug-12 6:07am
View
Thanks for reply,
From the link you given I got a beavertail name source code of a software. when I run it and provide the same credentials, I got error. The same was happening with my code and also some other code that I downloaded earlier but not with userbooster or apache directory studio which are released product.Is there is something missing
mayankkarki
6-Jun-12 14:47pm
View
ya in test environment, not tested on server.
mayankkarki
6-Jun-12 8:41am
View
I can only clear cookies form my session not from browser to make logout.
mayankkarki
27-Apr-12 0:38am
View
you can try regsvr32 in safe mode with admin account.
mayankkarki
26-Apr-12 1:22am
View
I really didn't get any satisfactory answer.I look the link above they also not have any good response and the language used is also non professional.Don't use such kind of word to anyone.If you don't know anything then there is no need to reply like this.
mayankkarki
21-Apr-12 5:15am
View
Thanks,
But I didn't find anything useful.I have a screenshot of the form that I want to make.If you want to see it how can I show you?
mayankkarki
29-Mar-12 6:35am
View
Thanks,
But this is not working.
mayankkarki
29-Mar-12 2:32am
View
I am doing like that where tasksDurationDays column has no. of days calculated by datediff of startdate and enddate.Is there some other way in c# or sql,I am using view to fill datatable.
dataSet.Tables["Tasks"].Columns.Add("TaskDuration", typeof(TimeSpan));
foreach (DataRow dr in dataSet.Tables["Tasks"].Rows)
{
dr["TaskDuration"] = TimeSpan.FromDays(dr["TaskDurationDays"].ToString().ToInt32());
}
mayankkarki
28-Mar-12 8:53am
View
Thanks,
I am using view in database,there is two datetime columns and on their datediff I have to calculate time.
mayankkarki
28-Mar-12 8:52am
View
Thanks,
I am using view in database,there is two datetime columns and on their datediff I have to calculate time.
Show More