Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Fix dircrawler logfile path
Browse files Browse the repository at this point in the history
Format readme
  • Loading branch information
gdedrouas committed Aug 30, 2016
1 parent ea6e728 commit 1d97d35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Dump/Dump.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ Function Execute-Cmd-Wrapper([string]$cmd, [array]$optionalParams, [bool]$maxRet
# Creating output directories
#
# $outputDir\
# |- logs
# |- dumps
# \- relations
# |- Ldap
# |- Logs
# \- Relations
#
$outputDirParent = $outputDir
$outputDir += "\$date`_$domainDnsName"
Expand Down Expand Up @@ -214,7 +214,7 @@ if($dumpLdap -and !$fromExistingDumps.IsPresent) {
Execute-Cmd-Wrapper -optionalParams $optionalParams -cmd @"
.\Bin\directorycrawler.exe
-w '$logLevel'
-f '$outputDirParent\Logs\$filesPrefix.dircrwl.log'
-f '$outputDir\Logs\$filesPrefix.dircrwl.log'
-j '.\Bin\ADng_ADCP.json'
-o '$outputDirParent'
-s '$domainController'
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RelADCP/x64 for DirectoryCrawler.
0. Install Neo4j: download [neo4j community edition](https://neo4j.com/download/other-releases/) and extract the zip/tar archive (not the installer). **Do not start the Neo4j server before importing your data.**


0. Install Ruby from http://rubyinstaller.org/downloads/ or from your distribution.
0. Install Ruby from https://rubyinstaller.org/downloads/ or from your distribution.


0. Install the `neography` gem. In an elevated prompt or with sudo:
Expand Down Expand Up @@ -157,10 +157,11 @@ You may need admin permissions to start/stop Neo4j.
$env:DUMP = "PATH_TO\yyyymmdd_domainfqdn\"

- In neo4j folder:
.\bin\neo4j-import --into data\databases\adcp.db --id-type string `
--nodes $env:DUMP\Ldap\all_nodes.csv `
--relationships $((dir $env:DUMP\relations\*.csv -exclude *.deny.csv) -join ',') `
--input-encoding UTF-16LE --multiline-fields=true

> .\bin\neo4j-import --into data\databases\adcp.db --id-type string `
--nodes $env:DUMP\Ldap\all_nodes.csv `
--relationships $((dir $env:DUMP\relations\*.csv -exclude *.deny.csv) -join ',') `
--input-encoding UTF-16LE --multiline-fields=true


Headers-related errors will be raised and can be ignored. It is still a good idea to have a look at the bad.log file.
Expand Down

0 comments on commit 1d97d35

Please sign in to comment.