samba 3.24 + ldap = error - please help me

Alex Murphy murphy at sgtp.samara.ru
Thu May 22 07:33:20 GMT 2003


The Regard !!!
  Probably I stupid, but can not understand in than mistake and why does not 
work Samba 3.24+ldap.

  Reconvert record on LDAP server to new scheme, now they look approximately 
so:

  # dgk, ovp, Users, sgtp, ru
  dn: uid=dgk, ou=ovp, ou=Users, o=sgtp, dc=ru
  objectclass: posixAccount
  objectclass: sambaSamAccount
  uid: dgk
  logontime: 0
  displayname:: yPHg5eIgxeLj5e3o6SDN6Oru6+Dl4uj3
  cn: dgk
  gecos:: yPHg5eIgxeLj5e3o6SDN6Oru6+Dl4uj3
  homedirectory: /mnt/xfs/homes/dgk
  loginshell: /dev/null
  uidnumber: 2012
  sambasid: S-1-5-21-1174496667-1382807048-3288504375-2012
  sambaprimarygroupsid: S-1-5-21-1174496667-1382807048-3288504375-1199
  sambapwdmustchange: 1055401067
  sambalmpassword: AEBD4DE384C7EC43AAD3B435B51404EE
  sambantpassword: 7A21990FCD3D759941E45C490F143D5F
  sambapwdcanchange: 1053586667
  sambaacctflags: [U          ]
  sambalogofftime: 2147483647
  sambakickofftime: 2147483647
  sambapwdlastset: 1053586667
  description:: yPHg5eIgxeLj5e3o6SDN6Oru6+Dl4uj3
  gidnumber: 100

  The File smb.conf has such type:


  [global]

  idmap uid = 10000-20000
  idmap gid = 10000-20000
  guest account = smbguest
  dos charset = 866
  unix charset = KOI8-R
  passdb backend = ldapsam:ldap://192.168.1.4/
  ldap suffix = o=sgtp,dc=ru
  ldap admin dn = cn=Manager
  log level = 4
  ldap ssl = no

  workgroup = murphy

  netbios name = mmm
  comment = Linux RedHat Samba Server
  security = user
  null passwords = Yes
  encrypt passwords = yes

  logon drive = U:
  logon path = \\%N\profiles$\%u

  domain master = yes
  domain logons = yes
  preferred master = yes
  os level = 255
  wins support = yes

  log file = /usr/local/samba/var/log.%m
  public = Yes
  browseable = yes
  writable = No

  ; necessary share for domain controller
  [netlogon]
  path = /usr/local/samba/lib/netlogon
  locking = no
  read only = yes
  write list = ntadmin

  ; share for storing user profiles
  [profiles$]
  path = /mnt/xfs/profiles
  read only = no
  writeable = yes
  create mask = 0600
  directory mask = 0700
  profile acls = Yes

  [test]
      path = /mnt/xfs/samba
          writeable = yes

 In an effort any joinings to to itself fall out such mistake:
          [root at bene bin]# ./smbclient -L localhost -U dgk
          doing parameter ldap ssl = no
          doing parameter workgroup = murphy
          doing parameter netbios name = mmm
          handle_netbios_name: set global_myname to: MMM
          doing parameter comment = Linux RedHat Samba Server
          doing parameter security = user
          doing parameter null passwords = Yes
          doing parameter encrypt passwords = yes
          doing parameter logon drive = U:
          doing parameter logon path = \\%N\profiles$\%u
          doing parameter domain master = yes
          doing parameter domain logons = yes
          doing parameter preferred master = yes
          doing parameter os level = 255
          doing parameter wins support = yes
          doing parameter log file = /usr/local/samba/var/log.%m
          doing parameter public = Yes
          doing parameter browseable = yes
          doing parameter writable = No
          pm_process() returned Yes
          added interface ip=192.168.1.4 bcast=192.168.1.255 
nmask=255.255.255.0
          Client started (version 3.0alpha24).
          resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
          startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. 
Error was No such file or directory
          resolve_wins: Attempting wins lookup for name localhost<0x20>
          wins_srv_is_dead: 127.0.0.1 is alive
          resolve_wins: using WINS server 127.0.0.1 and tag '*'
          nmb packet from 127.0.0.1(137) header: id=14366 opcode=Query(0) 
response=Yes
          header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
          header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
          answers: nmb_name=LOCALHOST<20> rr_type=32 rr_class=1 ttl=7200
          answers   0 char .....   hex 00007F000001
          Got a positive name query response from 127.0.0.1 ( 127.0.0.1 )
          Connecting to 127.0.0.1 at port 445
          session request ok
          protocol negotiation failed
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - error

   In smb.conf only here is these line:
 added interface ip=192.168.1.4 bcast=192.168.1.255 nmask=255.255.255.0
 [2003/05/22 12:24:39, 2] passdb/pdb_ldap.c:pdb_init_ldapsam(3745)
  Enabling non-unix account ranges

  That to do ?   where I not rights ?

   RESPECTFULLY YOURS, Aleksey.




More information about the samba-technical mailing list