How to get the username domain using wix - wix

I have developed a screen for admin username and password,how will I display the username and domain automatically in the place of admin name label.Please help me out.. I would like to know whether I should write any custom action for this.

You can access them directly as [%USERNAME] and [%USERDOMAIN] since both are environment variables.

Related

TYPO3 password protection without username

I want to have a subpage on my website that is password protected. There should be a list of 6-digit passwords that allow access to the site. However, I don't want the user to type in a username. He should only type in one of the 6-digit passwords.
Any ideas, how I can accomplish this?
The default login for TYPO3 uses username and password. If you only needed 1 password you could create 1 user and use a custom template with the username in a hidden field. However, since you want multiple passwords, there is no default way to do it without creating your own authentication service.
It's a bit much to explain how to create an authentication service here, but you can read the documentation here https://docs.typo3.org/m/typo3/reference-coreapi/9.5/en-us/ApiOverview/Authentication/Index.html.
You can also look at an example like https://github.com/tschikarski/shibboleth, which is a but complicated, but you'll mainly need to look at \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService in ext_localconf.php and the getUser and authUser functions in Classes/ShibbolethAuthentificationService.php.
With Typo3 mechanism, a password is always associated with a user name, I think you should do it by yourself :
if the content is from one of your extension, you can easily do it
if it's not the case, I think you could use a hook before page is displayed and manage password access in that hook
or you can make a specific template with which you can conditionally manage rendering
Why don't reverse the usage?
Create FE-users with the selected passwords as username, then assign all users the same password.
For the login you change the login form:
The password field gets a default value (the password you had set to
all accounts) and is hidden
The input field for the username is changed into a browser passowrdfield so the input is hidden by asteriks.
Then you might change the errormessages as they would confuse the user about his username so he only enters a "password".
There now exists an extension for that, too:
https://extensions.typo3.org/extension/sessionpassword
With that, you just have to create a specific usergroup for your purpose,
set a password an d include the plugin on the desired page.
Works for me in that case.

WiX ManagedBootstrapper SetDownloadSource confusion

I am a bit confused by the method Engine.SetDownloadSource(). What I am trying to do is change the download URL for the bundled packages from an external website to an internal one. (If there is an easier way to do this, I am open to other suggestions).
Now for the problem. When calling this method it is asking for a user and password. I am not sure where I should get this info from.
string downloadSource = Path.Combine(WebSitePath(), "WebSetup/WebSetupData/", Path.GetFileName(args.DownloadSource));
Engine.SetDownloadSource(args.PackageOrContainerId, args.PayloadId, downloadSource, user, password);
WebSitePath() simply returns the base URL for the website. I can't find any hint about what username and password the MBA would use if I didn't change the link, and likewise I am not sure how to tell it to use the current windows user to download from the new link. Any help would be greatly appreciated.
Username and password are optional to support basic or digest HTTP authorization. Set them to null if you don't want to provide a user/password combination.

SugarCRM - Regular User Type User Cannot Login

I have SugarCRM running and able to log in and out using the super admin account. I created a new user with type Regular User and defined it password because I unchecked the auto generation of password.
Even if I change the password through the database I cannot log in. But, if I changed the the type to Administrator that user can now login. Why is that? I want it to be a Regular User only.
Regards,
Ronel
In version 6.5.x I have found that there is a problem with password rules. Perhaps this is the case. Go to config.php and look at passwordsetting array. There is a minpwdlenght and a oneupper. Change 'oneuppper' to 'false' and match minpwdlenght to the lenght you want.
This solved my issue.

Access ADAM instance with JXplorer

Is it possible to access an ADAM instance with CA JXplorer?
I have an ADAM up and running, it could be accessed by ADAM ADSI Edit with my own Windows account and password.
JXplorer, on the other hand, uses UserDN for authentication. What should be my UserDN then?
Thanks a lot in advance!
You should be able to specify your userDN as:
username#yourdomain.org
Where "yourdomain.org" is the fully qualified domain name of the Active Directory domain that your user account lives in.
(I should add that this is an AD specific thing - no such equivalent exists for OpenLDAP).
Yes
you create user object by the user object class.
Set password the new user(use ADSI Editor).
Use userid : full DN of user
Try it.
I know this is an old question. But I just ran into the same issue today. Here is what I ended up doing.
In Windows ADSI, I opened the instance's configuration.
Double clicked - CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration
Then changed msds-other-settings attribute to ADAMAllowADAMSecurityPrincipalsInConfigPartition=1
Then created a user object in the cn=Roles. Reset the user's password. Then copied the user's DN (e.g. CN=tuser1,CN=Roles,CN=Configuration,CN={752D29BC-24E4-45E1-AE1E-855A812848DD} )
added it to msds-memberOfTransitive attribute of cn=Administrators.
Now I can connect to it with jXplorer where I use CN=tuser1,CN=Roles,CN=Configuration,CN={752D29BC-24E4-45E1-AE1E-855A812848DD} and password for my User DN/Password for username+password connection.
I haven't been able to create new users/password or organizations with jxplorer, but at least I can see the most common attributes of the existing users and orgs.

how to restrict direct access to a view for registered users, in a custom component, in joomla?

I am developing a component, and i am having my own login form and tables.
After authentication of user through my component, userinfo is being stored in Session.
Everything is fine. but user is able to access the views that are supposed to be viewed by logged in users.
I wanted to restrict the access through link. How to do it? Is it possible to so.
Note: I am not using joomla user login. I am using my own component.
Kindly help me to protect the views, and must be displayed after user logged in.
How can i accomplish this task?
Thanks in Advance
Check for advanced settings and set view access to Registered. 9jera.com