If you want a list of usernames:
replace the groupldap variable with what you are using.
<%@ Language=VBScript %>
<html>
<head>
<script language=JScript runat=server>
function SortVBArray(arrVBArray) {
return arrVBArray.toArray().sort().join('\b');
}
</script>
</head>
<body>
<%...
darvoset,
replace "mydomainname" with the netbios name of your domain. On the Line If tempgroup="staff" then , replace staff with the name of the group you are looking to authenticate against.
<%
strUsername=Replace(Request.Form("txtUserLogin"), "'", "''")...
Mo,
I haven't had the chance to do any coding, but I know how I want to lay them out. I've busy around here trying to automate a few other things. I should have a chance to dive into it tomorrow.
zcolton
attarMo,
Quite some time ago, I've learned it's much easier, and in most cases more powerful to use span's and div's and styles to control them. You'ld have a lot more control over data location and such. Tables also make webpages take longer to load.
Still working on other pages...
zcolton
attarMo,
work in progress (I have to clean up the code a bit, but it functions) I'm also starting to build a page to do edits, adds, and deletes with groups and users. This is a single page that takes care of security groups and DL's. the page is dynamic enough so that it doesn't matter what...
darvoset,
run the asp as -> webpage.asp?user=someusername
I didn't write a complete package to replace what you have done so far. This is simply a demonstration as to how to get the groups a user is a member of. You would need to modify the parts you need to fit your application.
zcolton
darvoset,
Here is some code that you might be able to use:
<%@ Language=VBScript %>
<html>
<head>
</head>
<body>
<%
strUsername = request.queryString("user")
strUserName = Right(strUserName, Len(strUserName) - InStrRev(strUserName, "\"))
Set objDomain = GetObject ("GC://rootDSE")
objADsPath =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.