SoftPerfect Network Scanner

Active Directory Import

Started by rmpf2

rmpf2

Active Directory Import   29 October 2016, 06:34

Hi,
After doing a 390 hostnames import NS reported 80 lines discarded. Do you know why, or how to know which ones were discarded?
SoftPerfect Support forum - Andrew avatar image

Re: Active Directory Import   29 October 2016, 09:53

It usually suggests the names couldn't be resolved to IP addresses.

You made a good point by the way, I have just changed the app to display a sample of discarded names. You can download the update here.

SoftPerfect support forum
rmpf2

Re: Active Directory Import   30 October 2016, 04:26

Thanks... Just a sample???? Can it be exported?

Also, is possible to make the call to the AD with some kind of query? Like trying to do the import of only Window XP machines.

For those that are not discarded to later being resolved is possible to have them with a default comment? (Comment can be the hostname?)
SoftPerfect Support forum - Andrew avatar image

Re: Active Directory Import   30 October 2016, 14:59

We have added a way for user to customise LDAP URL used to query AD as shown below in these builds.

A description of how to create custom AD searches can be found here.

SoftPerfect support forum
rmpf2

Re: Active Directory Import   01 November 2016, 06:29

Hi Andrew.

This was my first working AD connection statement before the new query feature: <LDAP://OU=IT,DC=business,DC=local>

Now it didn't work. This is the error: One or more errors occurred during processing of command

Later I tried: <LDAP://OU=IT,DC=business,DC=local>;(&(objectCategory=computer)(operatingSystem=Windows XP*)) , but again appear the error.

Can you tell me what I'm doing wrong or give us an example?
SoftPerfect Support forum - Andrew avatar image

Re: Active Directory Import   01 November 2016, 09:48

It's because now the entire connection string is exposed, including the attributes to select and search depth. Try something like this:
<LDAP://OU=IT,DC=business,DC=local>;(&(objectCategory=computer)(operatingSystem=Windows XP*));name;subtree
A similar example launched on a DC works for me:

SoftPerfect support forum
Rmpf2

Re: Active Directory Import   01 November 2016, 12:01

;name;subtree would always at the end? Whats the meaning of those two?
SoftPerfect Support forum - Andrew avatar image

Re: Active Directory Import   01 November 2016, 12:13

Those are components of an LDAP search query:
  • name is a selection of what attributes to retrieve.
  • subtree is a search scope.
May be it makes more sense to put those in separate input fields?
Rmpf2

Re: Active Directory Import   01 November 2016, 12:50

Yes it might help to visualize the concept. As i see in the ms article there just three alternatives for search scope (base, one level and subtree). Am I correct? In the case on name more attributes would be allow?
SoftPerfect Support forum - Andrew avatar image

Re: Active Directory Import   01 November 2016, 14:27

New update. Now the search scope and selected attributes are hidden to prevent any confusion and a filter field as added as shown below.

SoftPerfect support forum

SoftPerfect support forum
rmpf2

Re: Active Directory Import   02 November 2016, 00:12

Hi Andrew, nice job, every new feature, including the examples and the one to save the no ip resolution discarded hostnames, thanks. In the case of the hidden options like the name attribute make sense cause it would always be the one in terms of NS job but i think your first idea to allow the user to choose the search scope was not bad at all. Maybe a combo box or a list box with base, one level and subtree?

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********   *******   **     **  ********  **     ** 
 **        **     **  **     **  **        ***   *** 
 **               **  **     **  **        **** **** 
 ******     *******   *********  ******    ** *** ** 
 **               **  **     **  **        **     ** 
 **        **     **  **     **  **        **     ** 
 ********   *******   **     **  **        **     ** 

Message: