Hi does anyone have a complete example in ASP.NET VB to find move a User in Active Directory From one OU to another, any help would be great
View Complete Post
I created one application, and I need to authenticate local user. This user is the user who is login to his/her Personal Computer.. Main thing his that he/she does not in any DOMAIN... I want NON-DOMAIN authentication.. any how.... please help...
Is it possible to authenticate a user using userDN and password? If so, then tell me the syntax.So far i have tried to authenticate using username and password from my c# code using directoryentry which takes the parameters like domainname,username and password. But i need to authenticate using Userdn and password.
I´m trying to write a query for a list view that should return all items if the current user belong to a group. If the user doesn´t belongs to this group, no items should be returned.
So far, I could find many equal examples about using the CAML Membership element in a comparison with an AssignetTo field. But not making a comparison between the current user and a specific Sharepoint Group.
Any suggestions, please?
I am using two columns in one table such as StartDate,Enddate.
In asp.net Form two text boxes there. One is StartDate other one EndDate..
When user Click Submit button the Two dates is compare above DataFiled's...
-------- Data Base Values ----------------
user send Start Date ' 27/09/2010' and EndDate '30/09/2010'
Now the Query Check Dates Between Userdates avialable in Database....
What I ll do?????
(Note : Opertion only allow the Dates Not Exists in Database Dates)
Hello. I need to query current logged user private tags.
I want to show a links.
I'm using the following code:
using (SPSite site = new SPSite(@"http://dev2:27397/"))
using (SPWeb web = site.OpenWeb())
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
SocialTagManager tagManager = new SocialTagManager(serviceContext);
UserProfileManager userManager = new UserProfileManager(serviceContext, true);
SPUser user = web.CurrentUser;
UserProfile userProfile = userManager.GetUserProfile(user.LoginName);
var allTags = tagManager.GetTags(new Uri("http://dev2:27397/Lists/TaskList/..."));
var onlyOpenTags = tagManager.GetTags(userProfile);
Here I can get private tags for specific url and public for user.
But how to get private and public tags for current User?
I want to restrict a user with sys admin server role to execute a query. or is there any possibility to drop the query before it get executed (after parsing). I know i can do this using SSMS SET NOEXEC ON | OFF in Query Analyzer.
But how can i implement this when ever sysadmin user executes a particular query.
I have this issue that CQWP is rendring items that it should not render. I test this with a read-only user, that should NOT see draft pages or pages with different permissions. But the read-only user do see the items, but when I click on the link I get access
denied. This access denied is correct, but why does the page items appear in the CQWP at all?
1) I use OOTB CQWP (inherits from ContentByQueryWebPart in my .webpart file) : "<type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart ....." and I have my custom xsl to get the look and feel I need
2) The issue with page items showing when status = drafts only appear when using the PublishingExpirationDate field. When I try creating new pages and give them status draft by using "check in to share draft" (logged on as an contributer/approver
user), this item wil NOT appear in the CQWP for the read-only user. When I change a pages' status from approved to draft, this item will still be shown in the CQWP, but this will point correctly to the published version. But after the pages'
expired date (PublishingExpirationDate) is expired, the page gets status "draft" (handeled by a timer job I guess), and this page item will still be rendered in the CQWP, but sending the read-only user to an access-
In my webpage I have a textbox where the user can type information that they want to search by. I need to take the user input and build a sql query to return records. I have tested my query in sql and it works hardcoding parameters, however I am having trouble getting the user input dynamically and populating my query string. Can someone help me figure out how to get the user input to populate my query string???
Here is my code:
string sql = "SELECT CustomerID, FirstName, LastName, Email, City, State, Phone FROM dbo.Customer WHERE (FirstName LIKE '@SearchParms') OR (LastName LIKE '@SearchParms') OR (City LIKE '@SearchParms') OR (State LIKE '@SearchParms') ORDER BY LastName, FirstName";
//Declare the Command
SqlCommand cmd = new SqlCommand(sql, Conn);
//Add the parameters needed for the SQL query
cmd.Parameters.AddWithValue("@SearchParms", '%' + txtCustSearch.Text + '%');
//Declare a SQL adapter
SqlDataAdapter da = new SqlDataAdapter(sql, Conn);
//Declare a DataTable
DataTable dt = new DataTable();
//Populate the DataTable
//Bind to listview
lv.DataSource = dt;
Our User Profile Service is importing the data from AD. But there are additional data which is coming from different system (LDAP). We are supplementing additional fields in this way
-> Download from LDAP to SQL. From SQL update User Profile (which i am considering to use BCS now).
Here is my question, is there anyway to update the user profile with the data from LDAP directly instead of the above two step process. (Like customizing BCS through VS 2010, or if this is available out of the BOX)
We have some workflows which are been created already. The tasks are been assigned to users for their approval. Now, when the approver logs in it should display the Tasks List which are belonging to that particular user only. OR if the normal user logs inn,
it should display Tasks belonging to that User only. A web part should display this. Pls. note that I have to show the Tasks from both "Workflow Task" & "Task".
The Task list should come from across site collections of a Web Application.
Hence,The Scopen should be WebApplication.
How do I achieve the same? Need help ASAP.