User Profile

Collapse

Profile Sidebar

Collapse
Daxthecon
Daxthecon
Last Activity: Oct 13 '08, 09:15 PM
Joined: Jul 1 '08
Location: somewhere between here and there
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Daxthecon
    replied to Is manager memberof certain group[Loop]
    in .NET
    Code:
    public String GetGroups()
        {
            DirectoryEntry entry = new DirectoryEntry("LDAP://OU=DAXCON,DC=local,DC=hq");
            DirectorySearcher search = new DirectorySearcher(entry);
            search.Filter = "(cn=" + "manager" + ")";
            search.PropertiesToLoad.Add("memberOf");
            StringBuilder groupNames = new StringBuilder();
    ...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to Is manager memberof certain group[Loop]
    in .NET
    Frin. I want your children. I love you. I might be back for more tweaking questions but thanks a lot for your help.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to Is manager memberof certain group[Loop]
    in .NET
    No this is the actual LOOP problem not what do I do. I understand what needs to be done now and that helped me get that problem solved. But the problem has arisen again that this was not a valuable enough solution. So now I am trying to get the manager of the user and find that managers memberOf quality and if not such a group then get there manager and see if that person fits the quality.

    While he suggested this there was never really...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to ASP C# Itemtable cell money format
    in .NET
    Ok will do. Thank you very much for your help.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    started a topic Is manager memberof certain group[Loop]
    in .NET

    Is manager memberof certain group[Loop]

    I need help with making a loop that takes the current user finds there manager and if there manager is a member of this group then put into box if not then find the next manager till it gets to one that is a member of this certain group. Anyone know where I can find an example or where to look for the answer or has the answer, that will pull tons of weight of my shoulders and allow me to actually sleep for an hour, and is willing to give it to me....
    See more | Go to post

  • Daxthecon
    replied to ASP C# Itemtable cell money format
    in .NET
    I'm only familiar with putting <script>jarbl e</script> on top of the ASP.NET Page. Like I said I am realy new to this ASP.net Javascript business.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to ASP C# Itemtable cell money format
    in .NET
    Would I put the javascript into the ASP code at the top and call the element id and then apply the filter to it?
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to ASP C# Itemtable cell money format
    in .NET
    Is the js method used via putting it in via the asp as a getelementid or how is that put in. I've never had to ues ASP to do this. So I'm a little new to this method.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    started a topic ASP C# Itemtable cell money format
    in .NET

    ASP C# Itemtable cell money format

    Hey guys long time no see. Anyway I was asked to take care of a small issue with one of the item tables I worked on. The issue is that they want it to autoformat to ####.## if applicable. Such as if they just put in 2342 and no "." then the code formats it in there for them adding .00 to the end.

    I have searched the net and haven't come up with a solution that caters to my needs. I've found move this around and such but...
    See more | Go to post

  • Daxthecon
    replied to Manager of OU
    in .NET
    What I know about the Manager Attribute is that it returns the whole string in which the manager of the user is. cn=manager name, ou=IT,ou=compan y, dc=blah, dc=blah. If your run a split on ',' you can single out the name and post it to a string.

    My boss says there is a setting for Managed By of the Ou. But I have tried the managedBy. Maybe I am not doing that properly. I tried an array that checked the ou runs the ou against the managedBy...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to Manager of OU
    in .NET
    Thanks a lot of the work you have done. I was ordered to take a break for a few hours(or else I would have burned through the night still trying to figure it out). One of those "it's almost there" situations that I can't let sit.

    I then barted with my boss to make groups. Hoooraaayyyy. I Hope to find some way to logic out who is who's dept head. But no one seems to be able to know how to get the manager of the OU. Any other...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to Manager of OU
    in .NET
    Sorry. My thoughts at this point are just symbols. Miracle I can make sense of them. Now to the specs of everything:

    Project Background: Intranet set on IIS as a file system. AD is connected via a forest. RootDSE works due to one Domain Controller holding only One AD.

    Problem: I have a DirectorySearch er fetching all the attributes and then calling them via
    Code:
    Name.text = result.Properties["name"][0].ToString
    ...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    started a topic Manager of OU
    in .NET

    Manager of OU

    C# question. I am working on a web app to find a manager of the current users OU and post there name to a label at the bottom with a case statement. In the same context if the person accessing the page is the manager of the OU then I'd like to let them see a hidden field. Now I know the answer is out there and now one can seem to tell me how to access it and convert it to string. I keep getting stuck when I search for it. I thought it would be the...
    See more | Go to post

  • Daxthecon
    replied to Session互不干扰的问题
    in .NET
    This is all I can seeem to make out of it via a translator....
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to C# permissions
    in .NET
    Sure here is the code as it sits right now and I'll explain why it was done that way and it was meant for in short summary.
    Code:
    DirectoryEntry entry = new DirectoryEntry("LDAP://OU=DAXCON,DC=hq,DC=local");
    
    			DirectorySearcher search = new DirectorySearcher(entry);
    
    			search.Filter = "(samaccountname=" + username + ")";
    			search.PropertiesToLoad.Add("name");
    ...
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to C# permissions
    in .NET
    Ok so right now I have an array catching a few properties from the LDAP(Active Directory). These properties are funneled into one variable and the if statement then tells the variable which property it wants for it's particular needs. What I need is to find anyone with that is a manager(which means they have direct reports) and puts them in to this statement. Basically then this statement just decides based on is the person a manager.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    started a topic C# permissions
    in .NET

    C# permissions

    Code:
    if (username == "watson_c")
    			{
    				name.Visible = false;
    				changename.Visible = true;
    				changename.Value = "criteria here";
    			}
    The problem here is that I don't want to hardcode usernames... It's ridiculous to do if you are in a large company with poeple changing frequently and an app for almost everything then you are changing stuff in your code when it coulde be the Net...
    See more | Go to post

  • Daxthecon
    started a topic C# Date Dropdownlist Problem
    in .NET

    C# Date Dropdownlist Problem

    I have 3 drop down lists MM DD yyyy and have it calling the DateTime.Now.(t ime reference) then the format. I have populated the dropdownlist by hand with the selections that are available if the selected value needs to be another month/day/year and so on. I'd like to put more rules to it but everytime I get close to finding a piece of code with all the rules I need I find it needs something that I really am not able to do in this code. The problem...
    See more | Go to post

  • Daxthecon
    replied to C# array issue
    in .NET
    What about VB.net. Would this little aray be easier to make or am I barking up the wrong tree. I am new to AD for the most part and can't get a web server to display AD stuff in a dropdownlist. But this project after it broke exhibited the same behavior as the project I was working on and was stuck on.
    See more | Go to post

    Leave a comment:


  • Daxthecon
    replied to C# array issue
    in .NET
    I got it working again and I have no idea how... I just did pieces. and GetLength was there... Now is there a way to do this without having to change a ton of things around like this code is doing....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...