I have multiple apps on Linux server. I want to use Window Authentication for login in apps. How can I do it using on Linux. I already Have connection with Active Directory. I just need current username of requested user for getting user profile from active directory.
Can I do it without deploying apps on IISNODE ???
I want on Linux. Is there any module available for that?
You need to use either NTLM (simpler, but older and apparently less secure) or Kerberos (the new way and more secure, but a little more complicated to setup).
There is a Kerberos module for Node, but I have no experience with it: https://www.npmjs.com/package/kerberos
Search for "kerberos nodejs" and you should find more help.
I also found these walk-throughs to install modules on Apache to do it, in case they're helpful:
NTLM: http://modntlm.sourceforge.net/
Kerberos: https://active-directory-wp.com/docs/Networking/Single_Sign_On/Kerberos_SSO_with_Apache_on_Linux.html
Related
I am tring to make CRUD operations on Active Directory via nodejs.
The only package that handle CRUD operation in node that i have found is ad-
https://www.npmjs.com/package/ad.
Are you familiar with other packages?
Is this the only one for update operations?
It seems that integration with Active Directory in nodejs is not popular and mature. Am I wrong? should I implement such integration in Java or .Net core?
Thanks!
The right way is the way that works :) If you are already using NodeJS, then do it in NodeJS if at all possible.
Communication with AD would happen through LDAP, so you can look for NodeJS packages for LDAP. Here are a couple I found:
ldapjs
ldap-client
But that one you linked to is more specific to AD (and AD does have its own flavor of LDAP) so I would choose that as long as it works for you.
If it doesn't work for whatever reason, either ask a new question here to get specific help, or you can start looking into making a separate Java or .NET app to do it. But I wouldn't consider a separate app just for AD queries unless you absolutely couldn't do it in NodeJS.
I have recently bought a Asustor AS-302T NAS, which is an absolutely brilliant solution for the home. One of it's most impressive features is that you can install apps which extends the ordinary behavior of a NAS. And if you are a developer you can also create your own apps.
While apps are fun, I have more interest in using my NAS as a kitchen-sink for my personal nodejs projects. In short I want to run nodejs application that I can then call from various other machines around the house. My own mini-cloud for IOT experiments.
Installing, one click only
Having installed NodeJS through App-Central I am at a loss how exactly to start using NodeJS on my NAS. The whole installation is essentially an on/off switch with no options or visible settings at all. I can find no documentation on practical tasks like uploading a nodejs application, deal with access rights or even execute it.
Under Windows or OS-X I would use npm via the command-line or shell, but Asustor is a purely html based interface (with the exception of XBMC through HDMI).
Why offer to users the option of installing NodeJS -if it's impossible to actually use it?
So my question has three aspects to it:
How do i get access to npm on my Asustor NAS
How do i get my NodeJS application running
Is it possible to run my application as a service (executed when the NAS boots)?
From the ASUSTOR Developer's Guide: apps are installed into
/usr/local/AppCentral/$APP_NAME.
NodeJS executables will be at path /usr/local/AppCentral/nodejs/bin/node and /usr/local/AppCentral/nodejs/bin/npm.
You can login to NAS via SSH and add them to PATH variable, or create symlinks...
I'm also searching for solution how to run them as a service (daemon), maybe an /etc/init.d script might help.
I am kind of new to Node.js but I built an application and am pretty happy with it. I was wondering how would I go about uploading my Node.js application to an FTP server? Is it even possible to do this?
A Node.JS application is just a collection of files. You can upload them to another computer using FTP just like any other files.
That probably isn't what you are trying to ask though.
If you want to host a website built as a Node.JS application then you need to be using hosting that either:
Explicitly supports Node.JS (Google finds this list) or
Gives you full admin access (such as a virtual or dedicated server)
Such hosting will generally give you (at a minimum) shell access (via SSH) which you can use to run the Node.JS application.
I'm a nodejs beginner and I have a question about authentication.
My goal is to have an authentication based on the operative system users where the server js run.
I read many article on passport and express framework, but all require the presence of a mongoDB and it was out of scope for my problem.
So my question is:
Is it possible in nodejs to interact with OS and write an authentication module for the OS users?
I don't know exactly how is it possible, but it should be possible.
Some links for Windows:
C# Corner: Vidya Vrat Agarwal, Understanding Windows Authentication in Detail
StackOverflow: Windows Integrated Authentication in node.js Client
StackOverflow: NTLM authentication using node.js
Windows → Dev Center - Desktop → LogonUser function
Addons Node.js Manual & Documentation
However, if you are new to Node.js then using Windows Authentication strategy for Passport.js together with some MongoDB alternative (see Stack Overflow: Lightweight Javascript DB for use in Node.js) may be an easier way to go
I'm plan to release my web application under node-webkit platform and allow users to install it on their local machine. But before, I need to understand how will I update this application?
I see the following two approaches:
Download a new version of new application and replace older one
Autoupdate node-webkit application like Google Chrome does (so users don't need to do anything except rebooting application).
I'm very interested how should I do the second approach? Could you share your experience with maintaining of your node-webkit based applications?
Thanks!