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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winnt and ladp!

Status
Not open for further replies.

hartlen

IS-IT--Management
Aug 31, 2004
24
CN
set oDomain = GetObject("WinNT://testsinomos")
set oUser =oDomain.GetObject("User","s040695")
'wscript.echo err.number
oUser.put "title", "stitle"
oUser.setinfo

warning the line 4 have a error , but when i try with the echo err.number it returns 0,what errors ?

whether the winnt are the same as ldap, when I modify ,it can work

set oUser=GetObject("LDAP://cn=s" &sIdNo_ & ",ou=TestsinomosAccounts,dc=testsinomos,dc=com")
'wscript.echo
oUser.put "title", stitle
oUser.setinfo

where do i write wrong?
 
Hello hartlen,

[1] To see the error on line 4, you do this:
[tt]
'...the other lines above
on error resume next
oUser.put "title", stitle
wscript.echo err.number : err.clear
on error goto 0
'...etc
[/tt]
[2] The real problem is that WinNT user object does not support "title" property.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top