-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bin/pyntlm_auth to bin/impacket
- Loading branch information
Showing
5 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
ARG KNK_REGISTRY_URL | ||
ARG IMAGE_TAG | ||
FROM ${KNK_REGISTRY_URL}/pfdebian:${IMAGE_TAG} | ||
|
||
WORKDIR /usr/local/pf/ | ||
|
||
COPY ./html ./html | ||
COPY ./lib ./lib | ||
COPY ./db ./db | ||
COPY ./sbin/pfperl-api ./sbin/pfperl-api | ||
COPY bin/pfcmd.pl bin/pfcmd.pl | ||
COPY addons/ntlm-auth-api/openssl.cnf /etc/ssl/openssl.cnf | ||
RUN ln -s /usr/local/pf/bin/pfcmd.pl /usr/local/pf/bin/pfcmd | ||
RUN ln -s /usr/local/pf/bin/pyntlm_auth/impacket-addcomputer.py /usr/local/pf/bin/impacket-addcomputer | ||
RUN mkdir -p /usr/local/pf/var/run/ && chmod 0744 /usr/local/pf/var/run/ | ||
RUN mkdir -p /usr/local/pf/var/control | ||
RUN bash -c 'cd /usr/local/pf/db && export VERSIONSQL=$(ls pf-schema-* |sort --version-sort -r | head -1) && ln -f -s $VERSIONSQL ./pf-schema.sql' | ||
COPY ./bin/impacket ./bin/impacket | ||
COPY ./bin/pfcmd.pl ./bin/pfcmd.pl | ||
COPY ./addons/ntlm-auth-api/openssl.cnf /etc/ssl/openssl.cnf | ||
|
||
RUN ln -s /usr/local/pf/bin/pfcmd.pl /usr/local/pf/bin/pfcmd && \ | ||
ln -s /usr/local/pf/bin/impacket/impacket-addcomputer.py /usr/local/pf/bin/impacket-addcomputer && \ | ||
chmod +x /usr/local/pf/bin/impacket-addcomputer && \ | ||
mkdir -p /usr/local/pf/var/run/ && \ | ||
chmod 0744 /usr/local/pf/var/run/ && \ | ||
mkdir -p /usr/local/pf/var/control && \ | ||
bash -c 'cd /usr/local/pf/db && export VERSIONSQL=$(ls pf-schema-* |sort --version-sort -r | head -1) && ln -f -s $VERSIONSQL ./pf-schema.sql' | ||
|
||
ENTRYPOINT /usr/local/pf/sbin/pfperl-api prefork -m production -l http://127.0.0.1:22224 -l http://100.64.0.1:22224 --pid-file /usr/local/pf/var/run/pfperl-api.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters