octopus oc srv jobs ldap user locker
1.3.0
ล็อคบัญชีผู้ใช้ LDAP โดยอัตโนมัติด้วยเหตุผลบางอย่าง ที่จะใช้เป็นงานที่กำหนด
ขึ้นอยู่กับ OC_LDAP_Client ดังนั้นข้อ จำกัด ทั้งหมดจึงเป็นจริงที่นี่
ที่จะเขียน separatley และให้ - การโต้แย้ง -config เป็นไฟล์ JSON ตัวอย่าง:
{
"LDAP": {
"url": "ldap://ldap-test.example.local",
"user_cert": "/home/user/ssl/test/user.pem",
"user_key": "/home/user/ssl/test/user.priv.key",
"ca_chain": "/home/user/ssl/test/CA.chain.pem",
"baseDn": "dc=domain,dc=example,dc=local"
},
"SMTP": {
"url": "smtp://test.smtp.example.com:25",
"user": "TEST_USER",
"password": "TEST_PASSWORD",
"from": "[email protected]",
"subject": "default e-mail subject"
},
"users": [
{
"days_valid": 730,
"time_attributes": ["authTimestamp", "modifyTimeStamp", "createTimestamp"],
"condition_attributes": {
"memberOf.businessCategory": {
"values": [
"Vendor"
]
}
},
"lock_notifications": [
{
"days_before": 30,
"template": {
"file": "default_en.html.template",
"type": "html",
"signature": "signature.png"
}
},
{
"days_before": 10,
"template": {
"file": "default_en.html.template",
"type": "html",
"signature": "signature.png"
}
}
]
},
{
"days_valid": 90,
"time_attributes": ["authTimestamp", "modifyTimeStamp", "createTimestamp"],
"lock_notifications": [
{
"days_before": 30,
"template": {
"file": "default_en.html.template",
"type": "html",
"signature": "signature.png"
}
},
{
"days_before": 10,
"template": {
"file": "default_en.html.template",
"type": "html",
"signature": "signature.png"
}
}
]
},
{
"days_valid": 0,
"time_attributes": ["modifyTimeStamp", "createTimestamp"],
"condition_attributes":
{
"mail": {
"comparison": {
"type": "regexp",
"condition": "any"
},
"values": [
".*@gmail\.[a-z]+",
".*@mail\.[a-z]+",
".*@inbox\.ru",
".*@yandex\.ru",
".*@yahoo(mail|\-inc)?\.[a-z]+",
".*@ymail\.[a-z]+",
".*@rocketmail\.[a-z]+",
".*@hotmail\.[a-z]+",
".*@rambler\.ru",
".*@qip\.ru",
".*@bigmir\.net",
".*@ukr\.net",
".*@usa\.net",
".*@live\.[a-z]+",
".*@msn\.[a-z]+",
".*@googlemail\.[a-z]+"
]
}
}
}
]
}
ค่าที่เป็นไปได้ การเปรียบเทียบ พารามิเตอร์ย่อย: * ประเภท : regexp , ธรรมดา (ค่าเริ่มต้น) * เงื่อนไข : ทั้งหมด (ค่าเริ่มต้น), ใด ๆ
หาก ประเภท คือ regexp จะต้องมีการแสดงออกปกติ ของ Python ในส่วน ค่า ไม่รองรับการเปรียบเทียบแอตทริบิวต์ที่ไม่ใช่สตริง การเปรียบเทียบทั้งหมดเป็นตัวพิมพ์ใหญ่
- from notification configuration
- from global **SMTP** section if missing in template settings
- "Account lock warning" by default if both above missing
* *cn* - user login
* *givenName* - user first name
* *sn* - user last name
* *displayName* - user display name
* *lockDate* - locking date ('YYYY-MM-DD')
* *lockDays* - days before locking
สูงถึง v. 1.1.0: อันที่มีค่าน้อยกว่า days_valid ตั้งแต่ v. 1.2.0: สิ่งหนึ่งที่มีการติดต่อตัวกรองที่เข้มงวดกว่า หากจำนวนของแอตทริบิวต์ที่ตรงกับค่าเท่ากันแล้วอันแรกจะมาพร้อมกับการกำหนดค่า