You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly I must admit that I am completly new to active directory and this is my first attempt trying to collect data using ad.
I managed to get a simple example working:
const config = {
url: "ldap://<url>",
baseDN: "OU=Users,OU=Default,DC=<dc>,DC=intra,DC=local",
username: "<user>",
password: "<pass>"
};
let sAMAccountName = "test";
let ad = new ActiveDirectory(config);
ad.findUser(sAMAccountName, function(err, user) {
console.log(JSON.stringify(user.displayName));
});;
But then I need to use the variable user.displayName in another search using another baseDN: baseDN: 'OU=Laptops,OU=LmComputers,DC=<dc>,DC=intra,DC=local'
to be able to get the returned users computer-info. What is the preferred way to do this?
The text was updated successfully, but these errors were encountered:
Firstly I must admit that I am completly new to active directory and this is my first attempt trying to collect data using ad.
I managed to get a simple example working:
But then I need to use the variable
user.displayName
in another search using another baseDN:baseDN: 'OU=Laptops,OU=LmComputers,DC=<dc>,DC=intra,DC=local'
to be able to get the returned users computer-info. What is the preferred way to do this?
The text was updated successfully, but these errors were encountered: