This file contains hidden or 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
#!/bin/bash | |
# Usage | |
# First create an encrypted password to be used as connection pass | |
# and pass as a parameter with the script. To create use: slappasswd | |
# Clean packages | |
sudo yum clean all | |
# Install openldap as service manager | |
sudo yum -y install openldap-servers openldap-clients |
This file contains hidden or 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
#include <Windows.h> | |
#include <wincrypt.h> | |
#include <stdio.h> | |
#pragma comment(lib, "crypt32.lib") | |
#define BLOCK_LEN 128 | |
//params: <input file> <output file> <is decrypt mode> <key> | |
int wmain( int argc, wchar_t *argv[]) | |
{ |