Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - msSFU30 Attributes

Reply
 
Old 02-11-2009   #1 (permalink)
Mad Mark


 
 

msSFU30 Attributes

Hi,

I have written a script to create AD users. The script works fine and all
the users look perfect.
However, The UNIX attributes do not seem to take, after the script has
completed they are populated and look 100%, but AD does not recognise them.
The only way is to open the users GUI, set the domain to <none> Apply, then
set the domain back to the correct one, None of the values change at all!

The additions are via msSFU30 Attributes.

Any ideas? or a method that I need to call to do the update above?
Any suggestion gratefully received.

Ta

Mark.



My System SpecsSystem Spec
Old 02-11-2009   #2 (permalink)
HAL07


 
 

Re: msSFU30 Attributes

Mad Mark wrote:
Quote:

> Hi,
>
> I have written a script to create AD users. The script works fine and all
> the users look perfect.
> However, The UNIX attributes do not seem to take, after the script has
> completed they are populated and look 100%, but AD does not recognise them.
> The only way is to open the users GUI, set the domain to <none> Apply, then
> set the domain back to the correct one, None of the values change at all!
>
> The additions are via msSFU30 Attributes.
>
> Any ideas? or a method that I need to call to do the update above?
> Any suggestion gratefully received.
>
> Ta
>
> Mark.
>
>
Are you using the standard active directory users and computer or another way? I recommend you use ADSI edit or similar to view
msSFU30 attributes.
Or you can list them using vbscript.

Connect obj1 to user in AD using standard LDAP.

E.g.
wscript.echo " samAccountname: " & obj1.samAccountname & " (displayName: " & obj1.displayName & ")"
wscript.echo " msSFU30GidNumber: " & obj1.msSFU30GidNumber
wscript.echo " msSFU30UidNumber: " & obj1.msSFU30UidNumber
script.echo " msSFU30LoginShell: " & obj1.msSFU30LoginShell
wscript.echo " msSFU30HomeDirectory: " & obj1.msSFU30HomeDirectory

Or show it standard Unix-style:
wscript.echo " " & obj1.samAccountname &":x:"& obj1.msSFU30UidNumber &":"& obj1.msSFU30GidNumber &":"& obj1.displayName &":"&
obj1.msSFU30HomeDirectory &":"& obj1.msSFU30LoginShell



--
-- HAL07, Engineering Services, Norway
-- Info: social.technet.microsoft.com/Forums/ replaces a lot of the newsgroups
My System SpecsSystem Spec
Old 02-11-2009   #3 (permalink)
Mad Mark


 
 

Re: msSFU30 Attributes


"HAL07" <yahoohal@xxxxxx> wrote in message
news:OS7VSPFjJHA.4880@xxxxxx
Quote:

> Mad Mark wrote:
Quote:

>> Hi,
>>
>> I have written a script to create AD users. The script works fine and all
>> the users look perfect.
>> However, The UNIX attributes do not seem to take, after the script has
>> completed they are populated and look 100%, but AD does not recognise
>> them.
>> The only way is to open the users GUI, set the domain to <none> Apply,
>> then
>> set the domain back to the correct one, None of the values change at all!
>>
>> The additions are via msSFU30 Attributes.
>>
>> Any ideas? or a method that I need to call to do the update above?
>> Any suggestion gratefully received.
>>
>> Ta
>>
>> Mark.
>>
>>
> Are you using the standard active directory users and computer or another
> way? I recommend you use ADSI edit or similar to view msSFU30 attributes.
> Or you can list them using vbscript.
>
> Connect obj1 to user in AD using standard LDAP.
>
> E.g.
> wscript.echo " samAccountname: " & obj1.samAccountname & " (displayName:
> " & obj1.displayName & ")"
> wscript.echo " msSFU30GidNumber: " & obj1.msSFU30GidNumber
> wscript.echo " msSFU30UidNumber: " & obj1.msSFU30UidNumber
> script.echo " msSFU30LoginShell: " & obj1.msSFU30LoginShell
> wscript.echo " msSFU30HomeDirectory: " & obj1.msSFU30HomeDirectory
>
> Or show it standard Unix-style:
> wscript.echo " " & obj1.samAccountname &":x:"& obj1.msSFU30UidNumber
> &":"& obj1.msSFU30GidNumber &":"& obj1.displayName &":"&
> obj1.msSFU30HomeDirectory &":"& obj1.msSFU30LoginShell
>
Hi,

I am using that method to list out the objects, I get something like :-

msSFU30Name: testuser

msSFU30UidNumber: 10001

msSFU30GidNumber: 10000

msSFU30LoginShell: /bin/bash

msSFU30Password: ABCD!efgh12345$67890

msSFU30NisDomain: jp2k3

msSFU30HomeDirectory: /home/testuser



Mark


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
file attributes Vista General
File attributes .NET General
Validation Attributes PowerShell
Trying to add attributes to an XML document PowerShell
file attributes PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46