When importing from AD source (System > Users > Data Sources), you may see following error in localhost logs:
15 Jul 2014 09:17:36,791- SQL Error: 20001, SQLState: 72000
15 Jul 2014 09:17:36,791- ORA-20001: DataUser_STG_PROD_Match - Multiple staging users matched to a single production user
OR
15 Jul 2014 09:17:37,261- Thread: 182 INFO [com.vontu.enforce.domainlayer.datauser.source.ad.LdapSourceUserProvider] Skipped 6534 users during LDAP import. First name and last name must not be empty and either login or email must be available.
Data Loss Prevention 15.7 and higher.
A few users in AD (which is used to import the users) are missing on following fields :
# FIRST_NAME: First name (mandatory)
# LAST_NAME: Last name (mandatory)
# EMAIL: Email address (mandatory if Login not present)
# LOGIN: Login of user in DOMAINLOGIN format (mandatory if Email not present)
If any of the mandatory field is missing for any users, the AD User Import will fail.
Also, if there are duplicate entries for any user in AD, AD User Import will fail.
Use following powershell command to export all the users from AD.
a) Open Power Shell console and run following command
b) csvde -f test.csv -r objectClass=user
c) This will export all AD users to file test.csv
Caution: You should always have a DB backup when working with the DB.
Example:
a) Copy attached empty_user_list.sql into a temp folder c:SQL_temp
b) Open Command Prompt: cd SQL_temp
c) Launch SQLPlus: sqlplus /nolog
d) Connect to DLP Database: connect protect@protect
e) Launch/Run the script: @empty_user_list.sql
f) The script will produce an output file in the directory it was launched from called: empty_data_list.txt
To add the filter, do the following:
a) Go to: System > Users > Data Sources
b) Open the desired data source, or add a new one.
c) Expand Advanced Options.
d) Add the filter in the "AD Custom Filter" input box.
e) Click the Submit button.