StrataFrame Forum

SF Users - Importing

http://forum.strataframe.net/Topic8653.aspx

By Tim Dol - 5/2/2007

Do you guys have a program to import users from a external file and/or from active directory? We have a customer with 500 users and they are looking for a way to import so they don't have to manually create. 

I can write something but I thought I would check to see if you have done this before.

Thanks,

Tim

By Trent L. Taylor - 5/2/2007

No, we don't have anything like that.  However, you can easily use LDAP or WinNT with directory services to reflect over the users.

Dim loResults As SearchResultCollection
Dim loSearch As New DirectorySearcher(ObjectDirectoryEntryPoint)
loSearch.Filter = "(objectClass=User)"
loResults = loSearch.FindAll()
By Tim Dol - 5/3/2007

Thanks Trent.  When I populate the SF user table and then try to assign roles or permissions in the security editor, I get the message that the user is corrupted. Is there something I need to set in the record, perhaps in the 'data' field, to prevent this?

Tim

By StrataFrame Team - 5/3/2007

The data field gets set when you set the username, password, or any other field that doesn't show up as a column in the SFSUsers table.  If you override the data property, then you will get that error message.  Or, if you create the users without setting the application's security key that is used to encrypt the data.  It's the SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication() and it needs to be set to the same value as the application.