
10/01/2006, 05:46
|
 | | | Fecha de Ingreso: diciembre-2001 Ubicación: Caracas
Mensajes: 221
Antigüedad: 23 años, 3 meses Puntos: 1 | |
<%
strUserName = "pperez"
dtStart = TimeValue(Now())
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
"<LDAP://dc=tudominio,dc=com>;(&(objectCategory=User)" & _
"(samAccountName=" & strUserName & "));samAccountName;subtree"
Set objRecordSet = objCommand.Execute
If objRecordset.RecordCount = 0 Then
response.write "La cuenta: " & strUserName & " no existe."
Else
respnse.write strUserName & " existe."
End If
objConnection.Close
%>
__________________ RTFM antes de preguntar... |