Database.Login(username, password)
- Login( "", "" ) = use integrated login. Use NetServer to verify AD identity.
- Login( "username", "password" ) = use NetServer to verify username + password.
- Login( secret, "" ) = use NetServer ticket to verify previously created session.
SOApplication.Username returns current user’s id
SOApplication.Password
- in 6: returns current user’s password.
- in 7: returns an error. Use the new SafeCredentials instead.
SOApplication.Database.SafeCredentials = new method
- Return the NetServer secret needed to create your own NetServer session from scratch.
- Replaces the need for the old password property.
- This contains proof that you know both username + password, so you use it like this:
set SoApp = CreateObject("SuperOffice.Application");
secret = SoApp.Database.SafeCredentials
set db = CreateObject("SuperOfficeDB.Database");
db.Login( secret, "" );
Up: What's new in 7.0 Prev: Sale management Next: Common issues when upgrading from CRM SIX Edit