Skip to content

Instantly share code, notes, and snippets.

@davidpodhola
Created October 3, 2019 12:46
Show Gist options
  • Select an option

  • Save davidpodhola/b8c851ca3e7c4cf0c66d8981cd250028 to your computer and use it in GitHub Desktop.

Select an option

Save davidpodhola/b8c851ca3e7c4cf0c66d8981cd250028 to your computer and use it in GitHub Desktop.
ldapjs log
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":20,"msg":"connected after 1 attempt(s)","time":"2019-10-03T12:41:07.514Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"sending request {\"messageID\":1,\"protocolOp\":\"BindRequest\",\"version\":3,\"name\":\"CN=vagrant,CN=Users,DC=perficientads,DC=com\",\"authenticationType\":\"Simple\",\"credentials\":\"vagrant\",\"controls\":[]}","time":"2019-10-03T12:41:07.514Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"data event: <Buffer 30 84 00 00 00 10 02 01 01 61 84 00 00 00 07 0a 01 00 04 00 04 00>","time":"2019-10-03T12:41:07.517Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 0a 01 00 04 00 04 00>","time":"2019-10-03T12:41:07.518Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":1,\"protocolOp\":\"LDAPResult\",\"status\":0,\"matchedDN\":\"\",\"errorMessage\":\"\",\"referrals\":[],\"controls\":[]}","time":"2019-10-03T12:41:07.519Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.519Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"sending request {\"messageID\":2,\"protocolOp\":\"SearchRequest\",\"baseObject\":{\"rdns\":[{\"attrs\":{\"dc\":{\"value\":\"perficientads\",\"name\":\"DC\",\"order\":0}},\"spLead\":0,\"spTrail\":0},{\"attrs\":{\"dc\":{\"value\":\"com\",\"name\":\"DC\",\"order\":0}},\"spLead\":0,\"spTrail\":0}],\"_format\":{}},\"scope\":\"sub\",\"derefAliases\":0,\"sizeLimit\":0,\"timeLimit\":10,\"typesOnly\":false,\"filter\":\"(sAMAccountName=vagrant)\",\"attributes\":[\"dn\",\"sn\",\"cn\",\"mail\"],\"controls\":[]}","time":"2019-10-03T12:41:07.521Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"data event: <Buffer 30 84 00 00 00 55 02 01 02 64 84 00 00 00 4c 04 2b 43 4e 3d 76 61 67 72 61 6e 74 2c 43 4e 3d 55 73 65 72 73 2c 44 43 3d 70 65 72 66 69 63 69 65 6e 74 ... >","time":"2019-10-03T12:41:07.523Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 04 2b 43 4e 3d 76 61 67 72 61 6e 74 2c 43 4e 3d 55 73 65 72 73 2c 44 43 3d 70 65 72 66 69 63 69 65 6e 74 61 64 73 2c 44 43 3d 63 6f 6d 30 84 00 00 00 ... >","time":"2019-10-03T12:41:07.523Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":2,\"protocolOp\":\"SearchEntry\",\"objectName\":\"CN=vagrant,CN=Users,DC=perficientads,DC=com\",\"attributes\":[{\"type\":\"cn\",\"vals\":[\"vagrant\"]}],\"controls\":[]}","time":"2019-10-03T12:41:07.524Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.524Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 04 51 6c 64 61 70 3a 2f 2f 46 6f 72 65 73 74 44 6e 73 5a 6f 6e 65 73 2e 70 65 72 66 69 63 69 65 6e 74 61 64 73 2e 63 6f 6d 2f 44 43 3d 46 6f 72 65 73 ... >","time":"2019-10-03T12:41:07.524Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":2,\"protocolOp\":\"SearchReference\",\"uris\":[\"ldap://ForestDnsZones.perficientads.com/DC=ForestDnsZones,DC=perficientads,DC=com\"],\"controls\":[]}","time":"2019-10-03T12:41:07.525Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.525Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 04 51 6c 64 61 70 3a 2f 2f 44 6f 6d 61 69 6e 44 6e 73 5a 6f 6e 65 73 2e 70 65 72 66 69 63 69 65 6e 74 61 64 73 2e 63 6f 6d 2f 44 43 3d 44 6f 6d 61 69 ... >","time":"2019-10-03T12:41:07.525Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":2,\"protocolOp\":\"SearchReference\",\"uris\":[\"ldap://DomainDnsZones.perficientads.com/DC=DomainDnsZones,DC=perficientads,DC=com\"],\"controls\":[]}","time":"2019-10-03T12:41:07.525Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.525Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 04 41 6c 64 61 70 3a 2f 2f 70 65 72 66 69 63 69 65 6e 74 61 64 73 2e 63 6f 6d 2f 43 4e 3d 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2c 44 43 3d 70 65 72 ... >","time":"2019-10-03T12:41:07.526Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":2,\"protocolOp\":\"SearchReference\",\"uris\":[\"ldap://perficientads.com/CN=Configuration,DC=perficientads,DC=com\"],\"controls\":[]}","time":"2019-10-03T12:41:07.526Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.526Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"parse: data=<Buffer 0a 01 00 04 00 04 00>","time":"2019-10-03T12:41:07.526Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","level":10,"msg":"Parsing done: {\"messageID\":2,\"protocolOp\":\"LDAPResult\",\"status\":0,\"matchedDN\":\"\",\"errorMessage\":\"\",\"referrals\":[],\"controls\":[]}","time":"2019-10-03T12:41:07.527Z","v":0}
{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client","ldap_id":"1__ldap://70.70.70.70:389","level":10,"msg":"response received","time":"2019-10-03T12:41:07.527Z","v":0}
result status: {"messageID":2,"protocolOp":101,"controls":[],"log":{"_events":{},"_eventsCount":0,"_isSimpleChild":true,"_level":10,"streams":[{"type":"stream","stream":{"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":true,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"_events":{},"_eventsCount":1,"fd":1,"readable":false,"autoClose":false,"_type":"fs","_isStdio":true},"closeOnExit":false,"level":10,"raw":false}],"serializers":null,"src":false,"fields":{"name":"oecsc-rental","hostname":"PerficientAD","pid":4992,"clazz":"Client"},"haveNonRawStreams":true},"status":0,"matchedDN":"","errorMessage":"","referrals":[],"connection":{"connecting":false,"_hadError":false,"_handle":{"reading":true,"onconnection":null},"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":false,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":5,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"attributes":[],"notAttributes":[],"sentEntries":0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment