2021年5月29日 星期六

openBMC LDAP 設定(二) - openldap server 架設和bmc設定

在前一篇"openBMC LDAP 設定(一) - nss-pam-ldapd" 提到了openbmc ldap設定和驗證,能從以下幾個方向來看 

  • nss-pam-ldapd
  • ldap server 架設
  • redfish/web 設定
這篇會接續介紹剩下兩個部分,就是ldap server的架設和redfish/web設定

因為openbmc支援了 openldap 和 windows 的ad,因此這篇選用OpenLDAP server架設為範例

LDAPS: openBMC LDAP 設定(三) - LDAPS(LDAP over TLS)

2021年5月28日 星期五

openBMC LDAP 設定(一) - nss-pam-ldapd

obmc的user managment 可以參考官方文件 (https://github.com/openbmc/docs/blob/master/architecture/user-management.md

openbmc ldap設定和驗證,能從以下幾個方向來看 
先了解 nss-pam-ldapd 的概念後就能進行ldap server的設定,設定完就能驗證redfish/web的ldap功能是否正常

這篇會介紹nss-pam-ldap,ldap server的架設和 redfish& web設定會在openBMC LDAP 設定(二) - openldap server 架設和bmc設定中介紹,LDAPS在openBMC LDAP 設定(三) - LDAPS(LDAP over TLS)

2021年5月11日 星期二

Lua Tutorial - Coroutines

想看更多Lua教學可以看之前的文章: Learn Lua in 10 minutes 裡面有內容大綱和更多仔細地介紹

Lua的Coroutines可以說是一個能隨時停止或執行的function,官網原文是

A coroutine is a function that can suspend execution to be resumed later.

意思就是"coroutine 是個可以隨時暫停等待再次被執行的 function",我們這邊簡單舉個例子

2021年5月6日 星期四

10分鐘學會Lua Basics ( Multiple Assignment, Table, Module, Function )

這是一篇文章能讓你10 分鐘學會lua 基本用法的教學文

底下是這篇文章會介紹到的基本用法,灰色部分會在其他章節中另外介紹

Lua Basics

Comment

String

Number

Variable scope

Ternary Operator

Loop Activity(while, repeat)

Table

Multiple Assignment

Function

Module 

Coroutines(點我)

Metatables

Prototype Based OO Programming

LuaJIT - FFI Library


以下會用各種範例來和大家介紹lua有哪些功能和用法,知道這些用法之後,遇到不懂的語法也能知道怎麼搜尋關鍵字