Allow network user login via terminal

Solution 1:

first: sudo /usr/sbin/dseditgroup -o edit -a "com.apple.loginwindow.netaccounts" -t group "com.apple.access_loginwindow"

then: sudo /usr/sbin/dseditgroup -o edit -a "yourAccount" -t group "com.apple.loginwindow.netaccounts"