rian
asked on
BDC Dialing Permission
I was wondering if there is a way around my problem
I have a program which add users to the NT User Manager domain from a text file. One of the thing I do in the program is to give them the capability to dial the RAS Server and connect. This program works on a PDC. But when I run this program from a Backup Domain Controller, I get a error "This function can only be run from a PDC". I am using the following code
if (UserAdded)
{
ras_user.bfPrivilege = RASPRIV_DialinPrivilege | RASPRIV_NoCallback;
dwResult = RasAdminUserSetInfo(lpwsUs erServer,l pszName, &ras_user);
if (dwResult == 0)
{
printf("User configured for Remote Access. \n");
}
else
{
printf("Unable to configure User for Remote Access. Result Code was %i\n", dwResult);
}
}
The lpwsUserServer is set to Null.
I get a error code of 2226.
Is there a way I can do this from a BDC.
Thanks a lot
RC
I have a program which add users to the NT User Manager domain from a text file. One of the thing I do in the program is to give them the capability to dial the RAS Server and connect. This program works on a PDC. But when I run this program from a Backup Domain Controller, I get a error "This function can only be run from a PDC". I am using the following code
if (UserAdded)
{
ras_user.bfPrivilege = RASPRIV_DialinPrivilege | RASPRIV_NoCallback;
dwResult = RasAdminUserSetInfo(lpwsUs
if (dwResult == 0)
{
printf("User configured for Remote Access. \n");
}
else
{
printf("Unable to configure User for Remote Access. Result Code was %i\n", dwResult);
}
}
The lpwsUserServer is set to Null.
I get a error code of 2226.
Is there a way I can do this from a BDC.
Thanks a lot
RC
ASKER
I did and it worked. Thanks a lot. Is there an API which gives me back the Domain Name of where the computer belongs too.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you tried specifying the PDC name as this parameter?