Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. djhawthorn

    Active Directory Trusts & Firewalls - Authentication Flows

    Hello, I have a complex AD environment involving many domains/forests and firewalls everywhere. For sake of this question, lets say I have 20 DC's in one forest and 10 in the other, and have a two-way forest trust between them. All DC's are behind different firewalls so without rules in...
  2. djhawthorn

    Active Directory Trusts & Firewalls - Authentication Flows

    Hello, I have a complex AD environment involving many domains/forests and firewalls everywhere. For sake of this question, lets say I have 20 DC's in one forest and 10 in the other, and have a two-way forest trust between them. All DC's are behind different firewalls so without rules in place...
  3. djhawthorn

    Preauthenticate before using GPMGMT

    The delegations certainly are on a group (not on an individual object), and were delegated out using the GPMC's "Delegation" tab on the "Group Policy Objects" container (I cant stand the wizards) - I've successfully delegated that permission out to a group of users in the local domain, so it...
  4. djhawthorn

    Preauthenticate before using GPMGMT

    The trust is established in my test environment, the correct permissions are set (local user is delegated GPO Create permissions, for example), but still get an access denied. I havent had time to troubleshoot it further. The trust in the production environment though is not so easy -...
  5. djhawthorn

    Preauthenticate before using GPMGMT

    The problem is though, I need to run the HTA against both domains. Basically I access information and resources from one domain and pass it to the other. So runas etc. won't have any effect, as I will only be authenticating against one domain. Besides, runas requires trusts in place. As best as...
  6. djhawthorn

    Preauthenticate before using GPMGMT

    This script will be executed by multiple people several times a day, via a HTA GUI (where they enter their username and password and other details). These people will not have access to add scheduled tasks, and ideally, this needs to be self-contained inside the HTA. I have the script using the...
  7. djhawthorn

    Preauthenticate before using GPMGMT

    Sorry, I meant from within VBScript.. I'm using the GPMGMT API to remotely backup GPO's and import them locally. I need to specify a remote domain username and password to be able to connect though. [ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill...
  8. djhawthorn

    Preauthenticate before using GPMGMT

    Is there a way to preauthenticate to a remote/foreign domain before using a tool such as the GPMC Managament API (GPMGMT) to connect to that remote domain? I get 'Access Denied' when I try to bolt up to the remote DC if I dont have the same username and password in both domains...
  9. djhawthorn

    ADO Permission Failure when querying against remote domain

    Thanks for the reply... The two domains have different usernames and passwords - I explicitly made sure of this so I didn't get any authentication using my logged on credentials. Also, I am specifying alternative credentials per the example / code below (using the remote domain username and...
  10. djhawthorn

    ADO Permission Failure when querying against remote domain

    Sorry, I should mention that both domains are separate forests with no trusts between them. There is simply network connectivity and name resolution. [ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
  11. djhawthorn

    ADO Permission Failure when querying against remote domain

    Does anyone know how to get serverless binding to work for remote domain authentication/ADO queries? I have tried the example1 per the MS Scripting Guy page, however I always get ‘Provider: Permission denied’ whenever I try and execute the query. I have turned on auditing on the remote DC (in...
  12. djhawthorn

    ADSI / LDAP query OU tree

    Damn, it does work. I missed a few things in my attempt at coding that obviously, as when I tried it cried around the time it (re)creates the command object. Thanks heaps for that - I really appreciate it. I learnt a thing or two too. Out of interest, why/what is the ByRef and ByVal do for...
  13. djhawthorn

    ADSI / LDAP query OU tree

    It will return all OU's, yes, but I need to build a tree view of those OU's, not have a flat listing of them. So currently I have something like (somewhat psudeo code): Function DoRecursiveLookup(strObjectDN) 'Start of this level of OU echo "<ul>" 'Retrieve a list of OU's for this...
  14. djhawthorn

    ADSI / LDAP query OU tree

    That works; only that I need to set sScope to onelevel in order to show nested levels. Eg. <ul> <li>Level 1 - 1</li> <ul> <li>SubLevel 1 - 1</li> <li>SubLevel 1 - 2</li> </ul> <li>Level 1 - 2</li> </ul> As soon as I call the function to go into the sublevel, it will die as the...
  15. djhawthorn

    ADSI / LDAP query OU tree

    I have the following code which enumerates the list of OU's in the domain and outputs the list to a HTA (indented using UL and LI tags): Function DoRecursiveLookup(strObjectDN) Set objConnection = GetObject("LDAP://" & strObjectDN) For each objChild In objConnection If (objChild.Class...
  16. djhawthorn

    ereg Regular Expression problem

    I went down the path of strlen, and used a simple HTML form to debug. Cheers for all the help. [ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
  17. djhawthorn

    ereg Regular Expression problem

    I have the following regular expression return ereg('^[a-zA-Z0-9]*([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)[a-zA-Z0-9]*$', $validate); Which work for validating a character string containing only alphanumerics and ensuring the string contains at least 1 alpha and 1 numeric; but I need to ensure it...
  18. djhawthorn

    Join two tables

    Nevermind - worked it out. I had the LEFT JOIN around the wrong way - thanks for the help. [ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
  19. djhawthorn

    Join two tables

    Sweet. So now I need to merge that with another query: SELECT Winner AS TeamWon, COUNT(Winner) AS GamesWon FROM Games WHERE Winner > 0 GROUP BY TeamWon Which returns something like: +---------+----------+ | TeamWon | GamesWon | +---------+----------+ | 1 | 3 | | 2...
  20. djhawthorn

    Join two tables

    I have the following query: SELECT Team1, COUNT(Winner) AS Won FROM Games WHERE Winner = -1 GROUP BY Team1 UNION ALL SELECT Team2, COUNT(Winner) AS Won FROM Games WHERE Winner = -1 GROUP BY Team2; Which returns the following: +-------+-----+ | Team1 | Won | +-------+-----+ | 1 | 1 | |...

Part and Inventory Search

Back
Top