Skip to content

Commit

Permalink
conections
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 24, 2023
1 parent 9ae011c commit 834b469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ Erlang/OTP 24 [erts-12.2.1] [source] [64-bit]
[smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help)
> :application.which_applications
iex(1)>
07:13:52.765 [info] SYNRC LDAP Instance: "C27876AC5906C140"
07:13:52.765 [info] SYNRC LDAP Connection: #Reference<0.3013795599.2027814937.92659>
nil
iex(2)> :application.which_applications
[
{:logger, 'logger', '1.12.2'},
{:ldap, 'LDAP CXC 138 22 Directory Server', '13.7.24'},
Expand Down
3 changes: 2 additions & 1 deletion lib/ldap.ex
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ defmodule LDAP do

def initDB(path) do
{:ok, conn} = open(path)
:logger.info 'SYNRC LDAP Instance: ~p Connection: ~p', [path,conn]
:logger.info 'SYNRC LDAP Instance: ~p', [path]
:logger.info 'SYNRC LDAP Connection: ~p', [conn]
execute(conn, "create table ldap (rdn text,att text,val binary)")
:ok = execute(conn, "PRAGMA journal_mode = OFF;")
:ok = execute(conn, "PRAGMA temp_store = MEMORY;")
Expand Down

0 comments on commit 834b469

Please sign in to comment.