Results 1 to 19 of 19

Thread: What am i doing wrong

  1. #1
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    What am i doing wrong

    Here i go again trying script something... but i can seem to get the script to bind from ad. whats wrong? any help would be appreciated


    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://mickey.hfp.com:389/DC=hfp,DC=com" & strUser)

    Thanks
    Tyrel
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  2. #2
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    Tyrel, what are you trying to accomplish in the long run? Grab a user object?

    No matter our intentions, when we kill the innocent, we become the enemy.


  3. #3
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    yeah, boss wants a standard email sig
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  4. #4
    Gold Member Yearly Supporter McVaaahhh's Avatar
    Join Date
    May 2004
    Location
    Tucson
    Posts
    5,100

    Re: What am i doing wrong

    Quote Originally Posted by t_jolt View Post
    Here i go again trying script something... but i can seem to get the script to bind from ad. whats wrong? any help would be appreciated


    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://mickey.hfp.com:389/DC=hfp,DC=com" & strUser)

    Thanks
    Tyrel
    Not sure in script language, but if you're trying to put two strings together shouldn't you be using the + operator? In my world the & is a bitwise operator and your call should be:

    Code:
     
    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://mickey.hfp.com:389/DC=hfp,DC=com" + strUser)
    '02 RC-51 - Street
    '05 Pitster Pro 125 - Pitbike madness

    Be polite. Be professional. But be prepared to kill everyone you meet.

    "Motorcycles tell us a more useful truth: we are small and exposed, and probably moving too fast for our own good, but that's no reason not to enjoy every minute of the ride."
    ~Dave Karlotski

  5. #5
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    here is what i have so far - vbs script

    On Error Resume Next

    Set objSysInfo = CreateObject("ADSystemInfo")

    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://mickey.hfp.com:389/dc=hfp,dc=com" & strUser)

    strName = objUser.FullName
    strTitle = objUser.Title
    strCompany = ("Company Name")
    strPhone = objUser.telephoneNumber
    strWeb = ("website")

    Set objWord = CreateObject("Word.Application")

    Set objDoc = objWord.Documents.Add()
    Set objSelection = objWord.Selection

    Set objEmailOptions = objWord.EmailOptions
    Set objSignatureObject = objEmailOptions.EmailSignature

    Set objSignatureEntries = objSignatureObject.EmailSignatureEntries

    objSelection.TypeText strName
    objSelection.TypeParagraph()
    objSelection.TypeText strTitle
    objSelection.TypeParagraph()
    objSelection.TypeText strPhone
    objSelection.TypeParagraph()
    objSelection.TypeText strCompany
    objSelection.TypeParagraph()
    objSelection.TypeText strWeb

    Set objSelection = objDoc.Range()

    objSignatureEntries.Add "AD Signature", objSelection
    objSignatureObject.NewMessageSignature = "AD Signature"

    objDoc.Saved = True
    objWord.Quit
    Last edited by t_jolt; Tue Oct 14th, 2008 at 01:15 PM.
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  6. #6
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    And for some strange reason it wont connect to AD, i dont know why, the port is open, and i believe that my ldap url format is correct. thats the only part thats starting to frustrate me.
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  7. #7
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    Is your AD set to allow LDAP queries?

    No matter our intentions, when we kill the innocent, we become the enemy.


  8. #8
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    Also, have you tried this to grab the username?

    Set objUser = GetObject(”LDAP://” & strUser)

    No matter our intentions, when we kill the innocent, we become the enemy.


  9. #9
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    ad is set to allow ldap querys and i have tried pointing directly to the user
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  10. #10
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong


    No matter our intentions, when we kill the innocent, we become the enemy.


  11. #11
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    yup
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  12. #12
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    its probably something stupid, i just wanted to make sure that my ldap format wasnt all goofed up
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  13. #13
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    Whats funny is I just tried that exact example, it works fine here.

    No matter our intentions, when we kill the innocent, we become the enemy.


  14. #14
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    yeah i dont know what the hell is going on, i have set ad to allow anonymous logon full read permissions and its still not working
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  15. #15
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    What does it return if anything?

    No matter our intentions, when we kill the innocent, we become the enemy.


  16. #16
    Senior Member TurboGizzmo's Avatar
    Join Date
    Sep 2005
    Location
    Loveland
    Posts
    1,600

    Re: What am i doing wrong

    Quote Originally Posted by mclarke View Post
    Mmm must add this to my list of things to do, good link thanks!
    1998 CBR600F3 "Desert Storm" - SOLD

    WAS keeping the banana seat alive!

  17. #17
    Senior Member mclarke's Avatar
    Join Date
    May 2006
    Location
    Denver, CO
    Posts
    1,840

    Re: What am i doing wrong

    wow! all i gotta say on this one...

    http://cwashington.netreach.net/depo...asp?Index=1123

    No matter our intentions, when we kill the innocent, we become the enemy.


  18. #18
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    nothing just puts in my company name, and website cause i hard coded it.
    so something has to be going on with ad. cause it should be working
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

  19. #19
    Senior Member Lifetime Supporter t_jolt's Avatar
    Join Date
    Apr 2007
    Location
    Lakewood
    Posts
    1,066

    Re: What am i doing wrong

    Quote Originally Posted by mclarke View Post
    wow! all i gotta say on this one...

    http://cwashington.netreach.net/depo...asp?Index=1123
    yeah saw that one too. thats crazy
    Mitsujagvettecedes 1000RXTS GTR

    Hand built by Jerry Garcia, Dan Gurney, Chuck Norris and Duntov's ghost. GT97 turbo,
    8WD, berilium pistons, titanium rods, unobtanium crank. Block forged from the dead souls of Mongol warriors. Depleted Uranium Dog box, Flubber tires, and stage 87 axles.

    -1.07 @5.7c

Similar Threads

  1. The wrong bike.
    By RyNo24 in forum Jokes & Stuff
    Replies: 0
    Last Post: Sat May 10th, 2008, 01:17 AM
  2. The Wrong Bike...
    By JustSomeDude in forum Pics and Videos
    Replies: 7
    Last Post: Wed Apr 23rd, 2008, 01:51 PM
  3. What's wrong with this picture????
    By Airreed in forum Pics and Videos
    Replies: 34
    Last Post: Tue Jun 6th, 2006, 01:51 PM
  4. What's Wrong With This Image...
    By Player 2 in forum Pics and Videos
    Replies: 21
    Last Post: Fri Jun 4th, 2004, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •