USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  ASP - Active Server Page
Voltar
Autor Assunto:  Active Directory + ASP
LuizRicarte
não registrado
Postada em 06/12/2004 08:52 hs   
Olá
Alguem sabe como incluir, alterar e excluir usuarios do AD atraves do ASP.
 
Obrigado
     
vilmarbr
Pontos: 2843
SAO PAULO
SP - BRASIL
Postada em 06/12/2004 12:36 hs         
Oi Luiz,
 
Se isso for possível via Ms-DOS então use o componente Windows Script Hosting que é nativo do Ms-IIS 5.0, creio que tb. os IIS posteriores, pois o mesmo pode acessar o shell do windows 2000 pelo Ms-DOS,veja infos. sobre:
About Windows Scripting Host
The Microsoft® Windows® Scripting Host is a language-independent scripting host for ActiveX™ scripting engines on 32-bit Windows platforms. Windows Scripting Host will be integrated into Windows® 98, Windows NT® Workstation version 5.0, and Windows NT Server version 5.0.
Both Microsoft® Visual Basic® Scripting Edition (VBScript) and Microsoft® JScript™ scripting engines are provided with Windows Scripting Host. Other software companies will provide ActiveX™ scripting engines for languages such as Perl, TCL, REXX, Python, and others.
Windows Scripting Host can be run from either the Windows-based host (Wscript.exe), or the command-shell-based host (Cscript.exe).
 
pequeno exemplo:
'»»INÍCIO: Rotina p/ executar comandos Ms-DOS.
Set objWshell = Server.CreateObject("WScript.Shell")
'»»Comando DIR.
objWshell.Run "%COMSPEC% /C dir " & strCaminho & " > " & strCaminho & "dir.txt", 0, TRUE
'»»FIM: Rotina p/ executar comandos Ms-DOS.
 
onde %COMSPEC% é uma variável de ambiente MS-DOS que diz qual o caminho do interpretador de comandos(no caso windows 2000 é o cmd.exe, mas tb. pode-se usar o command.com)
 
t+

http://www.vilmarbro.com.br
     
LuizRicarte
não registrado
Postada em 06/12/2004 13:38 hs   
Vilmar,
Cara eu até entendi o q vc quis dizer, utilizar o DOS p/ fazer a importação, mas tenho o problema de não saber como montar o script entende?? não sei como funciona internamente o AD, estive pesquisando e encontrei um tal de System.DirectoryServices sabe como funcioan isso??
 
Obrigado
 
LuIzRiCaRtE
     
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2025   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página