Skip to content

Commit

Permalink
Move bin/pyntlm_auth to bin/impacket
Browse files Browse the repository at this point in the history
  • Loading branch information
JeGoi committed Dec 20, 2024
1 parent 1e8fa0a commit fb51955
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 14 additions & 7 deletions containers/pfperl-api/Dockerfile
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
7 changes: 4 additions & 3 deletions rpm/packetfence.spec
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,10 @@ fi
%attr(0755, pf, pf) /usr/local/pf/bin/cluster/pfupdate
%attr(0755, pf, pf) /usr/local/pf/bin/cluster/maintenance
%attr(0755, pf, pf) /usr/local/pf/bin/cluster/node
%dir /usr/local/pf/bin/impacket
%attr(0755, pf, pf) /usr/local/pf/bin/impacket/impacket_addcomputer.py
%attr(0755, pf, pf) /usr/local/pf/bin/impacket/impacket_logger.py
%attr(0755, pf, pf) /usr/local/pf/bin/impacket/impacket_utils.py
%dir /usr/local/pf/bin/pyntlm_auth
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/config_generator.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/config_loader.py
Expand All @@ -959,9 +963,6 @@ fi
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/t_sdnotify.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/t_worker_register.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/utils.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/impacket_addcomputer.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/impacket_logger.py
%attr(0755, pf, pf) /usr/local/pf/bin/pyntlm_auth/impacket_utils.py
%attr(0755, pf, pf) /usr/local/pf/sbin/galera-autofix
%attr(0755, pf, pf) /usr/local/pf/sbin/mysql-probe
%attr(0755, pf, pf) /usr/local/pf/sbin/pfconnector
Expand Down

0 comments on commit fb51955

Please sign in to comment.