Help with Using LDIF

Help with Using LDIF

Post by Bob Smedle » Wed, 11 Sep 2002 03:57:21

I need to change all user accounts so that user dial-in rights are
controlled through remote access policy. I've discovered that the "Allow
access" and "Deny access" conditions are controlled by setting the attribute
msNPAllowDialin to TRUE or FALSE. However, it appears that the option for
remote access policy is controlled by the absence of this attribute.

I exported the AD with the command:

ldifde -f Exportuser.ldf -s <Servername> -d "dc=mydomain,dc=com" -p
subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l

and I get something like

dn: CN=Bob Smedley,OU=Users,OU=_CSD,DC=mydomain,DC=engr
changetype: add
cn: Bob Smedley
givenName: Bob
msNPAllowDialin: TRUE
objectClass: user
sAMAccountName: RSmedley

Some of my users have the msNPAllowDialin attribute set to TRUE. Others have
it set to FALSE. Others don't have it at all.

My question. How would I need to change the above LDF data to set dial-in
rights to "Control with remote access policy"?



1. Modifying passwords using LDIF

I am pulling my hair out.  I am trying to modify passwords
in AD using LDIFDE.  The Q article says that the
unicodePwd attribute must be enclosed in quotes and
encoded in base64.  I have set up a new password and
encoded it, but it still won't work.  What am I missing
here?  When I put quotes around it, I get a '"' token
error on line......

The example in the Q article doesn't show quotes either.  
I tried encoding with quotes, but I just get the error:

"The unicodePwd attribute value must be enclosed in double
 Any help would be appreciated.

generic levitra india
generic levitra india
what happens if a woman takes viagra

2. Active Home for Win2000

3. Using LDIF files and ldifde.exe with Active Directory

4. Software Testing Practicum

5. Importing Schemas using LDIF Format

6. Watermark Using Theme Designer??

7. Help with LDIF syntax

8. Help! Phasing error? (as11)

9. ldif command HELP????

10. Creating users by ldif files + AFS mounting

11. LDIF change of password...has anyone got it to work

12. NT 4.0 and LDIF

13. LDif & Exchange 2000