Damien Persohn
2001-Apr-11 15:39 UTC
smbpasswd 2.0.7-3 matters (with smbpasswd & smb.conf...)
My message is first in english (hope you'll understand it), et en fran?ais pour ceux qui le causent. --- ENGLISH --- Hi everybody, I've got a matter with my Samba server supplied by Debien 2.2r0. testparm returns there's no problem in smb.conf. It's in 'security = DOMAIN' mode. I've got 3 boxes : SERVEUR$, POSTE1$ and POSTE2$, and 6 users, all correctly added to /etc/passwd. I've put SERVEUR$ in /etc/samba/smbpasswd with 'smbpasswd -a -m SERVEUR'. No problem. But, each entry after that, about a box or a user, gives that message twice : getsmbfilepwent : Malformed Lanman password entry (non hex chars) This, each time I add an entry, so at the end I've 16 lines like that. There wasn't problem for the first entry (SERVEUR$). My smbpasswd looks fine, smb.conf too... I added them here. Did someone have this matter ? Help !!! I can't work... Damien Persohn dpersohn@ifrance.com PS : notes about the server Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --- FRAN?AIS --- Bonjour tout le monde, j'ai un probl?me avec mon serveur Samba 2.0.7-3 livr? avec la Debian 2.2r0. testparm me dit que mon smb.conf est valide. Je suis en 'security = DOMAIN'. J'ai 3 machines : SERVEUR$, POSTE1$, POSTE2$, et 6 utilisateurs, tous correctement inscrits dans /etc/passwd. J'ai inscrit SERVEUR$ dans smbpasswd avec 'smbpasswd -a -m SERVEUR'. Jusque-l?, pas de probl?me. Mais ? chaque entr?e suivante, qu'elle concerne une machine ou un utilisateur, j'obtiens ce message en double exemplaire : getsmbfilepwent : Malformed Lanman password entry (non hex chars) Et ce, ? chaque fois que j'ajoute une entr?e, donc ? la fin j'ai 16 lignes de ce type. Il n'y a pas eu de probl?me pour la premi?re entr?e (SERVEUR$). Mon smbpasswd me semble correct, mon smb.conf aussi... Ils sont joints. Quelqu'un a-t'il d?j? eu ce genre de probl?me ? A l'aide !!! Je suis totalement bloqu? dans mon travail... Damien Persohn dpersohn@ifrance.com PS : config du serveur Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --------------- ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -------------- next part -------------- [global] admin users = admin allow trusted domains = yes bind interfaces only = yes case sensitive = no change notify timeout = 15 character set = ISO8859-1 client code page = 850 create mask = 0770 deadtime = 15 debug timestamp = yes debug level = 1 default case = lower delete readonly = yes delete veto files = yes directory mask = 0770 dns proxy = yes domain logons = yes domain master = yes dont descend = /dev dos filetimes = yes encrypt passwords = yes fake oplocks = yes getwd cache = yes guest ok = no hosts allow = 192.168.111.0/255.255.255.0 inherit permissions = yes interfaces = eth0 lo keepalive = 60 level2 oplocks = yes load printers = no local master = yes logon drive = u: logon home = \\SERVEUR\%U\Profils\%m logon path = \\SERVEUR\%U\Profils\%m logon script = /home/admin/demarrage.bat mangle case = no map to guest = Never max xmit = 65535 message command = bash -c 'mail -s "Message de %f sur %m" admin < %s; rm %s' name resolve order = lmhosts bcast wins hosts netbios name = SERVEUR nt acl support = yes null passwords = no oplocks = yes os level = 100 panic action = bash -c 'mail -s "Samba" < echo "Probl?me SMB"' passwd chat = "*Ancien mot de passe :*" %o\n "*Nouveau mot de passe :*" %n\n "*Confirmer :*" %n\n "*Mot de passe modifi?*" password level = 5 preferred master = yes preserve case = yes read raw = yes read size = 65536 remote announce = 192.168.111.255/PARAGEL restrict anonymous = yes security = domain server string = Serveur [Linux 2.2] shared mem size = 5242880 socket options = IPTOS_LOWDELAY TCP_NODELAY short preserve case = no time offset = 60 time server = yes unix password sync = yes unix realname = yes username level = 1 valid chars = 32 33 35 36 37 38 39 40 41 43 44 45 46 48 49 50 51 52 53 54 55 56 57 59 61 64 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 65:97 66:98 67:99 68:100 69:101 70:102 71:103 72:104 73:105 74:106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 125 126 127 128 130 131 132 133 134 135 136 137 138 139 140 145 146 147 148 149 150 151 152 153 154 155 156 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 valid users = @paragel wins support = yes widelinks = yes workgroup = PARAGEL write list = @paragel write cache size = 262144 [homes] create mask = 0700 directory mask = 0700 comment = Fichiers personnels [QMS] path = /var/spool/lpd/QMS lpq command = /usr/bin/lpq -P QMS lprm command = /usr/bin/lprm -P QMS %j comment = Minolta-QMS Magicolor 2200 GN print command = lpr -P QMS %s printer name = QMS printable = yes printer driver = MINOLTA-QMS magicolor 2200 [Epson] lpq command = /usr/bin/lpq -P Epson lprm command = /usr/bin/lprm -P Epson %j comment = Epson LQ-570+ printable = yes printer name = Epson print command = lpr -P Epson %s printer driver = Epson LQ-570+ ESC/P 2 path = /var/spool/lpd/Epson [Canon] lpq command = /usr/bin/lpq -P Canon lprm command = /usr/bin/lprm -P Canon %j comment = Canon LBP8-IIIR printable = yes print command = lpr -P Canon %s printer name = Canon printer driver = Canon LBP-8 IIIR path = /var/spool/lpd/Canon [Fax] comment = Envoi de t?l?copies printable = yes printer name = Fax path = /var/spool/lpd/Fax [Programmes] path = /opt comment = Applications [Documents] path = /documents create mask = 0770 comment = Documents accessibles ? tout le groupe [Web] path = /? comment = Racine du serveur HTTP [Racine] browseable = no only user = yes valid users = admin comment = Racine du syst?me de fichiers path = / ? -------------- next part -------------- SERVEUR$:999:33EA958F42D0D769AAD3B435B51404EE:AC35DD5119A272FEC8ACE8611A1B8EAC:[W ]:LCT-3AF7C179: POSTE1$:998:019531F2AC662DECAAD3B435B51404EE:637419A9D16C7D400F40117FEC1C328C:[W ]:LCT-3AF7C1AC: POSTE2$:997:D5E369F6930F10B8AAD3B435B51404EE:717ECDF3E18A9A2956636DAB303076E7:[W ]:LCT-3AF7C1B1: admin:1001:70D9FFE284F62773AAD3B435B51404EE:12F82CA11747D07446DF5C990BBB3B89:[U ]:LCT-3AF7C1D1: ph:1002:88BD38E32DD00D23AAD3B435B51404EE:9A7B306CA0AEDE9AA8F8C00FB905365E:[U ]:LCT-3AF7C1DC: jp:1003:997888244768CB40AAD3B435B51404EE:B4C3143D9B36A39156ED4743A8004D00:[U ]:LCT-3AF7C1EE: paul:1004:6402494CD3B86B10AAD3B435B51404EE:E0AEFFC8DE30D3246F9B5E3DE51D2C98:[U ]:LCT-3AF7C1F7: damien:1005:89C7E50CFCC5079FAAD3B435B51404EE:EC7208F1A70503FBDA4DC74AE23E2AD0:[U ]:LCT-3AF7C200: pierre:1006:E73AD857DF4902D8AAD3B435B51404EE:E0B4544BA4459E4FAD7D4431D127FC11:[U ]:LCT-3AF7C20E: ?
MCCALL,DON (HP-USA,ex1)
2001-Apr-12 16:49 UTC
smbpasswd 2.0.7-3 matters (with smbpasswd & smb.conf...)
Hello Damien, I think the problem MIGHT be your valid chars = .... You have mapped the characters ABCDEFGHI to abcdefghi in your valid chars = map... the routine that gets the entries from smbpasswd is running thru the 32byte password hash, and one of the things it does is to verify that each character is a HEX character; hex characters defined locally in the routine as "0123456789ABCDEF" Well, since ABCDEFGHI maps to abcdefghi, when it checks to see if a is a valid 'hexchar' it doesn't match (it's expecting A, not a) so you get the Malformed message... At least I think this is what's happening. Try removing the entries: 65:97 66:98 67:99 68:100 69:101 70:102 71:103 72:104 73:105 74:106 from your valid chars line in smb.conf and see if you don't get further... Hope this helps, Don -----Original Message----- From: Damien Persohn [mailto: <dpersohn@ifrance.com] Sent: Wednesday, April 11, 2001 11:40 AM To: samba@lists.samba.org; samba-ntdom@lists.samba.org Subject: smbpasswd 2.0.7-3 matters (with smbpasswd & smb.conf...) My message is first in english (hope you'll understand it), et en fran?ais pour ceux qui le causent. --- ENGLISH --- Hi everybody, I've got a matter with my Samba server supplied by Debien 2.2r0. testparm returns there's no problem in smb.conf. It's in 'security = DOMAIN' mode. I've got 3 boxes : SERVEUR$, POSTE1$ and POSTE2$, and 6 users, all correctly added to /etc/passwd. I've put SERVEUR$ in /etc/samba/smbpasswd with 'smbpasswd -a -m SERVEUR'. No problem. But, each entry after that, about a box or a user, gives that message twice : getsmbfilepwent : Malformed Lanman password entry (non hex chars) This, each time I add an entry, so at the end I've 16 lines like that. There wasn't problem for the first entry (SERVEUR$). My smbpasswd looks fine, smb.conf too... I added them here. Did someone have this matter ? Help !!! I can't work... Damien Persohn dpersohn@ifrance.com PS : notes about the server Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --- FRAN?AIS --- Bonjour tout le monde, j'ai un probl?me avec mon serveur Samba 2.0.7-3 livr? avec la Debian 2.2r0. testparm me dit que mon smb.conf est valide. Je suis en 'security = DOMAIN'. J'ai 3 machines : SERVEUR$, POSTE1$, POSTE2$, et 6 utilisateurs, tous correctement inscrits dans /etc/passwd. J'ai inscrit SERVEUR$ dans smbpasswd avec 'smbpasswd -a -m SERVEUR'. Jusque-l?, pas de probl?me. Mais ? chaque entr?e suivante, qu'elle concerne une machine ou un utilisateur, j'obtiens ce message en double exemplaire : getsmbfilepwent : Malformed Lanman password entry (non hex chars) Et ce, ? chaque fois que j'ajoute une entr?e, donc ? la fin j'ai 16 lignes de ce type. Il n'y a pas eu de probl?me pour la premi?re entr?e (SERVEUR$). Mon smbpasswd me semble correct, mon smb.conf aussi... Ils sont joints. Quelqu'un a-t'il d?j? eu ce genre de probl?me ? A l'aide !!! Je suis totalement bloqu? dans mon travail... Damien Persohn dpersohn@ifrance.com PS : config du serveur Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --------------- ____________________________________________________________________________ __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif
MCCALL,DON (HP-USA,ex1)
2001-Apr-12 16:53 UTC
smbpasswd 2.0.7-3 matters (with smbpasswd & smb.conf...)
Hello Damien, I think the problem MIGHT be your valid chars = .... You have mapped the characters ABCDEFGHI to abcdefghi in your valid chars = map... the routine that gets the entries from smbpasswd is running thru the 32byte password hash, and one of the things it does is to verify that each character is a HEX character; hex characters defined locally in the routine as "0123456789ABCDEF" Well, since ABCDEFGHI maps to abcdefghi, when it checks to see if a is a valid 'hexchar' it doesn't match (it's expecting A, not a) so you get the Malformed message... At least I think this is what's happening. Try removing the entries: 65:97 66:98 67:99 68:100 69:101 70:102 71:103 72:104 73:105 74:106 from your valid chars line in smb.conf and see if you don't get further... Hope this helps, Don ____________________________________________________________________________ __ -----Original Message----- From: Damien Persohn [mailto: <dpersohn@ifrance.com] Sent: Wednesday, April 11, 2001 11:40 AM To: samba@lists.samba.org; samba-ntdom@lists.samba.org Subject: smbpasswd 2.0.7-3 matters (with smbpasswd & smb.conf...) My message is first in english (hope you'll understand it), et en fran?ais pour ceux qui le causent. --- ENGLISH --- Hi everybody, I've got a matter with my Samba server supplied by Debien 2.2r0. testparm returns there's no problem in smb.conf. It's in 'security = DOMAIN' mode. I've got 3 boxes : SERVEUR$, POSTE1$ and POSTE2$, and 6 users, all correctly added to /etc/passwd. I've put SERVEUR$ in /etc/samba/smbpasswd with 'smbpasswd -a -m SERVEUR'. No problem. But, each entry after that, about a box or a user, gives that message twice : getsmbfilepwent : Malformed Lanman password entry (non hex chars) This, each time I add an entry, so at the end I've 16 lines like that. There wasn't problem for the first entry (SERVEUR$). My smbpasswd looks fine, smb.conf too... I added them here. Did someone have this matter ? Help !!! I can't work... Damien Persohn dpersohn@ifrance.com PS : notes about the server Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --- FRAN?AIS --- Bonjour tout le monde, j'ai un probl?me avec mon serveur Samba 2.0.7-3 livr? avec la Debian 2.2r0. testparm me dit que mon smb.conf est valide. Je suis en 'security = DOMAIN'. J'ai 3 machines : SERVEUR$, POSTE1$, POSTE2$, et 6 utilisateurs, tous correctement inscrits dans /etc/passwd. J'ai inscrit SERVEUR$ dans smbpasswd avec 'smbpasswd -a -m SERVEUR'. Jusque-l?, pas de probl?me. Mais ? chaque entr?e suivante, qu'elle concerne une machine ou un utilisateur, j'obtiens ce message en double exemplaire : getsmbfilepwent : Malformed Lanman password entry (non hex chars) Et ce, ? chaque fois que j'ajoute une entr?e, donc ? la fin j'ai 16 lignes de ce type. Il n'y a pas eu de probl?me pour la premi?re entr?e (SERVEUR$). Mon smbpasswd me semble correct, mon smb.conf aussi... Ils sont joints. Quelqu'un a-t'il d?j? eu ce genre de probl?me ? A l'aide !!! Je suis totalement bloqu? dans mon travail... Damien Persohn dpersohn@ifrance.com PS : config du serveur Bi-Pentium III 1 GHz, Linux 2.2.19, Samba 2.0.7-3 --------------- ____________________________________________________________________________ __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif