Skip to content
Snippets Groups Projects
Commit 50b75d82 authored by Benoit MARECHAL's avatar Benoit MARECHAL :fish:
Browse files

Update README.md

parent 6034ac33
Branches
No related tags found
No related merge requests found
......@@ -62,9 +62,9 @@ DNS Test : Ip resolution from Host
> If you want a GUI LDAP client, get the free LDAP Browser 4.5 (not the paid administrator version).
```powershell
$LDAP_PROTOCOL="ldap" # or ldaps
$LDAP_HOST= # ex: ldap.domain.tld
$LDAP_PORT="389" # default : 389 (LDAP), 636 (LDAPS)
$LDAP_PROTOCOL="ldap" # or ldaps
$LDAP_HOST= # ex: ldap.domain.tld
$LDAP_PORT="389" # default : 389 (LDAP), 636 (LDAPS)
$LDAP_URL=$LDAP_PROTOCOL://$LDAP_HOST:$LDAP_PORT
$LDAP_USERS_BASE=
$LDAP_BIND_FORMAT=
......@@ -76,7 +76,7 @@ $LDAP_USER_DN=
$LDAP_FILTER=
$LDAP_ATTR="*" # * for "For all attributs", ex: givenName, sn, mail, uid
$LDAP_ATTR="*" # * for "For all attributs", ex: givenName, sn, mail, uid
```
Check user exist :
......@@ -111,8 +111,22 @@ Get-ADGroupMember $GROUP_NAME | select name,distinguishedname
## Client SMTP
SMTP Parameters
SMTP Test with Mail command
SMTP Testing with Telnet
```
$SMTP_HOST="smtp.domain.com" # default
$SMTP_PORT="25" # default port 25 not secure, and 587 for encrypted (secure)serveur
# $SMTP_USERNAME= # optional
# $SMTP_PASSWORD= # optional
SMTP_SUBJECT="Test Subject"
SMTP_BODY="Test Body"
SMTP_RECIPIENT="recipient@domain.com" # Example
# SMTP_FROM="sender@domain.com" # Optional, don't add this if your server are not trusted by the recipient smtp server.
Send-MailMessage -SmtpServer $SMTP_HOST -Port $SMTP_PORT -To $SMTP_RECIPIENT -Subject $SMTP_SUBJECT -Body $SMTP_BODY
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment