[NAP HW1-3] Preflight Checking LDAP connectivity from both workstations

85 views
Skip to first unread message

文雅嫻

unread,
Apr 17, 2026, 10:17:53 PMApr 17
to NYCU NASA 課程討論區
助教好:
        想請問hw1-3 preflight的"Checking LDAP connectivity from both workstations"這項檢查會使用到generalta的 password-based authentication嗎?我發現設定完generalta的 TOTP feature之後,這一項就一直過不了,但我自己用加上totp word的密碼都能在workstation1正常使用ldapwhoami -x -D "uid=generalta,ou=People,dc=68,dc=nasa"等指令。不知道是不是我對作業totp的要求有誤解?
不好意思假日打擾了,謝謝助教!

賴羿茗

unread,
Apr 19, 2026, 9:32:16 AMApr 19
to NYCU NASA 課程討論區
同學您好:

感謝您的回報,經檢查是測試腳本使用的密碼有誤.
目前已經修復了,再麻煩您重新繳交,謝謝.

BR,
TA ymlai

xian...@nycu.edu.tw 在 2026年4月18日 星期六上午10:17:53 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 19, 2026, 11:32:47 PMApr 19
to NYCU NASA 課程討論區
助教好:
不好意思,我目前還是過不了preflight。我自己測試的方法是用oathtool --base32 --totp -s 60 " OJ上的TOTP Secret"生成OTP接在OJ上的"Your TA Password"後面,可以正常使用ldapsearch -H ldaps://ldap.68.nasa -x -D "uid=generalta,ou=People,dc={id},dc=nasa"查詢

charli...@nycu.edu.tw 在 2026年4月19日 星期日晚上9:32:16 [UTC+8] 的信中寫道:

賴羿茗

unread,
Apr 20, 2026, 8:53:26 AMApr 20
to NYCU NASA 課程討論區
同學您好:

您的實作結果是正確的,目前已更新腳本並新增更多 debug 資訊。
再麻煩您重新繳交一次作業,謝謝。

如造成不便,敬請見諒。

BR,
TA ymlai

xian...@nycu.edu.tw 在 2026年4月20日 星期一上午11:32:47 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 20, 2026, 9:45:15 AMApr 20
to NYCU NASA 課程討論區
助教不好意思!我剛剛再試了一次還是不行,請問助教有辦法從我的繳交紀錄看到問題出在哪嗎?非常感謝!

charli...@nycu.edu.tw 在 2026年4月20日 星期一晚上8:53:26 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 20, 2026, 9:59:34 AMApr 20
to NYCU NASA 課程討論區
有看到助教加上的 debug訊息
LDAP auth with TOTP succeeded. TOTP is enabled for LDAP authentication.
但最後還是會掉到
Checking LDAP connectivity from both workstations. LDAPS connection failed from workstation1 
不知道和totp不能同一組重複登入是否有關? 

文雅嫻 在 2026年4月20日 星期一晚上9:45:15 [UTC+8] 的信中寫道:

賴羿茗

unread,
Apr 20, 2026, 12:24:26 PMApr 20
to NYCU NASA 課程討論區
同學您好:

非常感謝您的細心提醒與協助。目前腳本已經改為由 mailta 來測試 TOTP 以外的測資。
再麻煩您重新繳交一次,造成不便之處,敬請見諒。

感謝您對作業測資的寶貴貢獻

BR,
ymlai

xian...@nycu.edu.tw 在 2026年4月20日 星期一晚上9:59:34 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 20, 2026, 8:55:41 PMApr 20
to NYCU NASA 課程討論區
助教好:
感謝您的回覆,目前preflight已經能順利通過了,但卡在posix_group的檢查 
Checking sudo permissions. generalta sudo permission is not correct on workstation1.
應該也是類似的狀況。再麻煩助教確認後面其他的測試腳本了,謝謝助教!

charli...@nycu.edu.tw 在 2026年4月21日 星期二凌晨12:24:26 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 20, 2026, 10:09:42 PMApr 20
to NYCU NASA 課程討論區
另外acl原本按照作業說明會測試 generalta can write passwords but must not be allowed to read them,因此我只有設定開generalta的權限,但現在改成用mailta檢查,會與預期的效果不一樣。也麻煩助教再確認最後作業的要求了,謝謝助教!

文雅嫻 在 2026年4月21日 星期二上午8:55:41 [UTC+8] 的信中寫道:

賴羿茗

unread,
Apr 20, 2026, 11:50:04 PMApr 20
to NYCU NASA 課程討論區
同學您好:

1. 目前 generalta 相關測資已更新,應該不會有問題了。
2. 麻煩您將 mailta 也設定為與 generalta 相同權限,稍後會發相關公告解說。

謝謝

BR,
TA ymlai
xian...@nycu.edu.tw 在 2026年4月21日 星期二上午10:09:42 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 21, 2026, 2:24:26 AMApr 21
to NYCU NASA 課程討論區
謝謝助教!目前其他項目都可以正常測試了。不好意思還想請問: totp測試如果出現 
Using bind password [xxxxx] with TOTP for generalta authentication check. oathOTPLength is incorrect for generalta.
這是代表authentication錯誤,還是查詢generalta在ldap上的資料時找不到 oathOTPLength? 
之前版本的測試腳本我有得到過LDAP auth with TOTP succeeded,這樣應該代表長度沒問題?
charli...@nycu.edu.tw 在 2026年4月21日 星期二上午11:50:04 [UTC+8] 的信中寫道:

賴羿茗

unread,
Apr 21, 2026, 3:12:21 AMApr 21
to NYCU NASA 課程討論區
同學您好:

剛剛在 OJ 後台觀察是 ldap auth 失敗,目前加入了更多 debug message 與 retry 一次的機制以防 otp code 剛好過期。
再麻煩您到 OJ 測試,謝謝。

BR,
TA ymlai

xian...@nycu.edu.tw 在 2026年4月21日 星期二下午2:24:26 [UTC+8] 的信中寫道:

文雅嫻

unread,
Apr 21, 2026, 3:21:31 AMApr 21
to NYCU NASA 課程討論區
助教好:
目前測試正常了,感謝您!

charli...@nycu.edu.tw 在 2026年4月21日 星期二下午3:12:21 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages