A Samba smbpasswd problem with passwords longer than 14 characters

패스워드 길이가 14자 이상일 때 삼바 smbpasswd 문제

I recently switched to Gentoo Linux due to some random problem with dmraid in Ubuntu Linux. It was perfect at least for dmraid issues, but I realized again that it’s not really a kind Linux distribution after dealing with other various issues I’ve encountered so far.

최근에 우분투 리눅스에 있는 무작위로 발생하는 dmraid 문제 때문에 젠투 리눅스로 전환했습니다. 적어도 dmraid 문제는 완벽하게 해결되었지만 지금까지 다른 다양한 문제를 겪으면서 젠투가 그렇게 친절한 리눅스 배포판은 아니라는 걸 다시금 깨닫게 되었습니다.

The craziest one is that smbpasswd allows me to set my password longer than 14 characters while the Samba client truncates my password to 14 characters before encrypting it and sending it to the Samba server, which causes a unexpected NT_STATUS_WRONG_PASSWORD error. Strictly speaking, it’s a limitation of Lanman protocol , which is forced in ‘shared‘ security level, but why the hell should I know this detail!

가장 황당한 것은 smbpasswd로 14자 이상의 암호를 설정할 수 있는 반면 삼바 클라이언트는 제 암호를 14자로 잘라서 암호화해 삼바 서버로 전송한다는 것입니다. 덕택에 생각지도 못한 NT_STATUS_WRONG_PASSWORD 에러를 겪게 되지요. 엄격하게 말하면 ‘shared‘ security level에서 강제로 사용하도록 자동 설정되는 Lanman 프로토콜의 제약 사항이긴 하지만, 제가 도대체 이걸 왜 알아야 되는 건지 모르겠네요!

Ubuntu, I really appreciate you did the truncation for me behind the scene, and am sorry for the betrayal!

우분투여, 날 위해 뒤에서 몰래 14자로 암호를 잘라준 것 정말 고마워, 그리고 배신해서 미안해! ㅜㅜ